Installation
npm install --save @types/randomcolor
Summary
This package contains type definitions for randomcolor (https://github.com/davidmerfield/randomColor).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomcolor.
declare function randomColor(options?: RandomColorOptionsSingle): string;
declare function randomColor(options?: RandomColorOptionsMultiple): string[];
interface RandomColorOptionsSingle {
hue?: number | string | undefined;
luminosity?: "bright" | "light" | "dark" | "random" | undefined;
seed?: number | string | undefined;
format?: "hsvArray" | "hslArray" | "hsl" | "hsla" | "rgbArray" | "rgb" | "rgba" | "hex" | undefined;
alpha?: number | undefined;
}
interface RandomColorOptionsMultiple extends RandomColorOptionsSingle {
count: number;
}
export = randomColor;
export as namespace randomColor;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Mathias Feitzinger.