From 6ee7f82b821324b127f323e3780b9d078785f6c3 Mon Sep 17 00:00:00 2001 From: Brady Liles Date: Tue, 22 Nov 2016 08:50:59 -0700 Subject: [PATCH] Added module to randomcolor to properly import from angular2. --- randomcolor/index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/randomcolor/index.d.ts b/randomcolor/index.d.ts index 1886e38a09..28bfa0ac05 100644 --- a/randomcolor/index.d.ts +++ b/randomcolor/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for randomColor 0.4.1 // Project: https://github.com/davidmerfield/randomColor -// Definitions by: Mathias Feitzinger +// Definitions by: Mathias Feitzinger & Brady Liles // 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"; -} \ No newline at end of file +} + +declare module "randomcolor" { + export = randomColor; +}