Fix randomColor return type (#35402)

If count option is greater than 1, randomColor returns an array of colors
This commit is contained in:
Emilien Escalle 2019-05-14 23:28:09 +02:00 committed by Nathan Shively-Sanders
parent 619310c8f1
commit f930254275

View File

@ -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;