From 0eb892ba536b4b4512d5d8da246d035709c56989 Mon Sep 17 00:00:00 2001 From: Bartvds Date: Sun, 9 Jun 2013 22:20:11 +0200 Subject: [PATCH 1/3] added missing require.main --- node/node.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/node/node.d.ts b/node/node.d.ts index 9434764e46..41265c68d4 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -36,6 +36,7 @@ declare var require: { resolve(id:string): string; cache: any; extensions: any; + main:any; } declare var module: { From c084481b2ec20b7857ace4fa1cdebf3cb6465f52 Mon Sep 17 00:00:00 2001 From: Bart van der Schoor Date: Sun, 9 Jun 2013 23:23:51 +0300 Subject: [PATCH 2/3] replaced tab withs spaces --- node/node.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/node.d.ts b/node/node.d.ts index 41265c68d4..8aa2f7beb6 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -36,7 +36,7 @@ declare var require: { resolve(id:string): string; cache: any; extensions: any; - main:any; + main: any; } declare var module: { From fcadc9aa75c81e17fd1e09a5f3056f490deec14f Mon Sep 17 00:00:00 2001 From: Bartvds Date: Mon, 10 Jun 2013 19:02:16 +0200 Subject: [PATCH 3/3] added definitions for colors.js --- colors/colors.d.ts | 22 ++++++++++++++++++++++ colors/colors.test.ts | 5 +++++ 2 files changed, 27 insertions(+) create mode 100644 colors/colors.d.ts create mode 100644 colors/colors.test.ts 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];