From cfd790c64aabf727efbdea7866ff268fb4cd1a5a Mon Sep 17 00:00:00 2001 From: Niels van Hoorn Date: Mon, 26 Jun 2017 15:06:55 +0200 Subject: [PATCH] Added equals function --- types/tinycolor2/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/tinycolor2/index.d.ts b/types/tinycolor2/index.d.ts index a84cfef5fb..b9bd88fd44 100644 --- a/types/tinycolor2/index.d.ts +++ b/types/tinycolor2/index.d.ts @@ -92,6 +92,11 @@ interface tinycolor { /**/ mix(color1: ColorInput, color2: ColorInput, amount?: number): tinycolorInstance; + /** + * Can be called with any tinycolor input + */ + equals(color1: ColorInput, color2: ColorInput): boolean; + /** * Returns a random color */