diff --git a/colors/colors.d.ts b/colors/colors.d.ts new file mode 100644 index 0000000000..99388e69db --- /dev/null +++ b/colors/colors.d.ts @@ -0,0 +1,22 @@ +// Type definitions for Colors.js 0.6.0-1 +// Project: https://github.com/Marak/colors.js +// Definitions by: Bart van der Schoor +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare interface String { + bold:string; + italic:string; + underline:string; + inverse:string; + yellow:string; + cyan:string; + white:string; + magenta:string; + green:string; + red:string; + grey:string; + blue:string; + rainbow:string; + zebra:string; + random:string; +} diff --git a/colors/colors.test.ts b/colors/colors.test.ts new file mode 100644 index 0000000000..bf83f60056 --- /dev/null +++ b/colors/colors.test.ts @@ -0,0 +1,5 @@ + +/// + +var test:string = 'test'; +var arr:string[] = ['color', 'odd'.italic.zebra, 'radical'.bold.rainbow, test.underline + 'super'.green];