mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-10 12:10:18 +00:00
Merge pull request #602 from Bartvds/master
added require.main to node.js
This commit is contained in:
22
colors/colors.d.ts
vendored
Normal file
22
colors/colors.d.ts
vendored
Normal 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
colors/colors.test.ts
Normal file
5
colors/colors.test.ts
Normal 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];
|
||||
1
node/node.d.ts
vendored
1
node/node.d.ts
vendored
@@ -36,6 +36,7 @@ declare var require: {
|
||||
resolve(id:string): string;
|
||||
cache: any;
|
||||
extensions: any;
|
||||
main: any;
|
||||
}
|
||||
|
||||
declare var module: {
|
||||
|
||||
Reference in New Issue
Block a user