added definitions for colors.js

This commit is contained in:
Bartvds
2013-06-10 19:03:31 +02:00
parent c084481b2e
commit fcadc9aa75
2 changed files with 27 additions and 0 deletions
+22
View File
@@ -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 <https://github.com/Bartvds>
// 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;
}
+5
View File
@@ -0,0 +1,5 @@
///<reference path="colors.d.ts" />
var test:string = 'test';
var arr:string[] = ['color', 'odd'.italic.zebra, 'radical'.bold.rainbow, test.underline + 'super'.green];