From f93025427500cc953c9675b63dd3cef1896dd1cd Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Tue, 14 May 2019 23:28:09 +0200 Subject: [PATCH] Fix randomColor return type (#35402) If count option is greater than 1, randomColor returns an array of colors --- types/randomcolor/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/randomcolor/index.d.ts b/types/randomcolor/index.d.ts index d0d36297b8..189c1d3404 100644 --- a/types/randomcolor/index.d.ts +++ b/types/randomcolor/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Mathias Feitzinger , Brady Liles // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare function randomColor(options?: RandomColorOptions): string; +declare function randomColor(options?: RandomColorOptions): string | string[]; interface RandomColorOptions { hue?: number | string;