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.)
This commit is contained in:
Aaron
2014-04-17 14:53:08 -05:00
parent 48ad0ea753
commit 2f7069a43b
+4
View File
@@ -3,6 +3,10 @@
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "colors" {
export function setTheme(theme:any):any;
}
interface String {
bold:string;
italic:string;