mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
added definitions for colors.js
This commit is contained in:
Vendored
+22
@@ -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;
|
||||
}
|
||||
@@ -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];
|
||||
Reference in New Issue
Block a user