Skip to content

Commit d1320b4

Browse files
committed
Kill 0.8 and 0.11, update tests and config
1 parent 65bc794 commit d1320b4

23 files changed

+48
-2710
lines changed

0.10/node.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ declare module "buffer" {
298298

299299
declare module "querystring" {
300300
export function stringify(obj: any, sep?: string, eq?: string): string;
301-
export function parse(str: string, sep?: string, eq?: string, options?: { maxKeys?: number; }): any;
302-
export function escape(): any;
303-
export function unescape(): any;
301+
export function parse(str: string, sep?: string, eq?: string, options?: { maxKeys?: number; }): { [key: string]: string | string[] };
302+
export function escape(str: string): string;
303+
export function unescape(str: string): string;
304304
}
305305

306306
declare module "events" {

0.11/test/index.ts renamed to 0.10/test/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ assert.equal(3, "3", "uses == comparator");
2121

2222
assert.notStrictEqual(2, "2", "uses === comparator");
2323

24-
assert.throws(() => { throw "a hammer at your face"; }, undefined, "DODGED IT");
24+
assert.throws(() => { throw "a hammer at your face"; }, "DODGED IT");
2525

2626
assert.doesNotThrow(() => {
2727
if (false) { throw "a hammer at your face"; }
28-
}, undefined, "What the...*crunch*");
28+
}, "What the...*crunch*");
2929

3030
////////////////////////////////////////////////////
3131
/// File system tests : http://nodejs.org/api/fs.html

0.11/test/tsconfig.json renamed to 0.10/test/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4-
"allowUnreachableCode": true
4+
"allowUnreachableCode": true,
5+
"noEmit": true
56
},
67
"files": [
78
"../node.d.ts",

0.10/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"target": "es5",
5-
"noImplicitAny": true
5+
"noImplicitAny": true,
6+
"strictNullChecks": true,
7+
"noEmit": true
68
},
79
"files": [
810
"node.d.ts"

0 commit comments

Comments
 (0)