mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Fix randomColor return type (#35402)
If count option is greater than 1, randomColor returns an array of colors
This commit is contained in:
parent
619310c8f1
commit
f930254275
2
types/randomcolor/index.d.ts
vendored
2
types/randomcolor/index.d.ts
vendored
@ -3,7 +3,7 @@
|
||||
// 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;
|
||||
declare function randomColor(options?: RandomColorOptions): string | string[];
|
||||
|
||||
interface RandomColorOptions {
|
||||
hue?: number | string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user