From 2f7069a43b9a504b0519c534179bd296eb59ae87 Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 17 Apr 2014 14:53:08 -0500 Subject: [PATCH] Update colors.d.ts to work with TypeScript import The file lacked a module delcaration, so it would not work with the following code: import colors = require("colors"); The `interface` does not belong in the `module` as it's global (applying to `String` and not scoped.) --- colors/colors.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/colors/colors.d.ts b/colors/colors.d.ts index c87112d7c4..e6056b3540 100644 --- a/colors/colors.d.ts +++ b/colors/colors.d.ts @@ -3,6 +3,10 @@ // Definitions by: Bart van der Schoor // Definitions: https://github.com/borisyankov/DefinitelyTyped +declare module "colors" { + export function setTheme(theme:any):any; +} + interface String { bold:string; italic:string;