0.5.9 • Published 6 months ago
@types/randomcolor v0.5.9
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.
index.d.ts
// Type definitions for randomColor 0.5.2
// Project: https://github.com/davidmerfield/randomColor
// Definitions by: Mathias Feitzinger <https://github.com/feitzi>, Brady Liles <https://github.com/BradyLiles>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 08 Jul 2021 20:20:15 GMT
- Dependencies: none
- Global values:
randomColor
Credits
These definitions were written by Mathias Feitzinger, and Brady Liles.