mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Merge pull request #12864 from BradyLiles/types-2.0
Added module on randomcolor.
This commit is contained in:
Vendored
+6
-2
@@ -1,6 +1,6 @@
|
||||
// Type definitions for randomColor 0.4.1
|
||||
// Project: https://github.com/davidmerfield/randomColor
|
||||
// Definitions by: Mathias Feitzinger <https://github.com/feitzi>
|
||||
// Definitions by: Mathias Feitzinger <https://github.com/feitzi> & Brady Liles <https://github.com/BradyLiles>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function randomColor(options?: RandomColorOptions): string;
|
||||
@@ -11,4 +11,8 @@ interface RandomColorOptions {
|
||||
count?: number;
|
||||
seed?: number | string;
|
||||
format?: "hsvArray" | "hslArray" | "hsl" | "hsla" | "rgbArray" | "rgb" | "rgba" | "hex";
|
||||
}
|
||||
}
|
||||
|
||||
declare module "randomcolor" {
|
||||
export = randomColor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user