From 60fc1660d63c41545115dc38d2b6985f1d58a9e5 Mon Sep 17 00:00:00 2001 From: Matthias Lochbrunner Date: Mon, 8 May 2017 10:01:54 +0200 Subject: [PATCH 1/4] Add openStdin() --- types/node/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 67f275c7b6..a410e0e77f 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -370,6 +370,7 @@ declare namespace NodeJS { stdout: Socket; stderr: Socket; stdin: Socket; + openStdin(): Socket; argv: string[]; argv0: string; execArgv: string[]; From 3664cc36abf268be686266b0bd59c6b8b5e3a29a Mon Sep 17 00:00:00 2001 From: lochbrunner Date: Sat, 15 Jul 2017 13:25:01 +0200 Subject: [PATCH 2/4] Making XmlDocument as an extension of XmlElement --- types/xmldoc/index.d.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/types/xmldoc/index.d.ts b/types/xmldoc/index.d.ts index a4373606d9..040653d61f 100644 --- a/types/xmldoc/index.d.ts +++ b/types/xmldoc/index.d.ts @@ -3,19 +3,10 @@ // Definitions by: Xavier Stouder , Andrew Sheehan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped): // TypeScript Version: 2.1 -export class XmlDocument { +export class XmlDocument extends XmlElement{ constructor(xmlString: string); doctype: string; - - eachChild(func: (child: XmlElement, index?: number, array?: XmlElement[]) => void): void; - childNamed(name: string): XmlElement; - childrenNamed(name: string): XmlElement[]; - childWithAttribute(name: string, value?: string): XmlElement; - descendantWithPath(path: string): XmlElement; - valueWithPath(path: string): string; - toString(opts?: XmlOptions): string; - toStringWithIndent(indent: string, opts?: XmlOptions): string; } export class XmlElement { From 2be18aea82438a7601896f0b65451037453a17eb Mon Sep 17 00:00:00 2001 From: lochbrunner Date: Sat, 15 Jul 2017 13:33:55 +0200 Subject: [PATCH 3/4] Remove unused function --- scripts/generate-tsconfigs.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/generate-tsconfigs.ts b/scripts/generate-tsconfigs.ts index b72144bf40..0115067e34 100644 --- a/scripts/generate-tsconfigs.ts +++ b/scripts/generate-tsconfigs.ts @@ -5,10 +5,6 @@ import * as fs from 'fs'; import * as path from 'path'; -function repeat(s: string, count: number) { - return Array(count + 1).join(s); -} - const home = path.join(__dirname, '..'); for (const dirName of fs.readdirSync(home)) { From eec6926c4b2115b554b91d800163a0821d0206f1 Mon Sep 17 00:00:00 2001 From: lochbrunner Date: Sat, 15 Jul 2017 13:34:03 +0200 Subject: [PATCH 4/4] Add missing whitespace --- types/xmldoc/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/xmldoc/index.d.ts b/types/xmldoc/index.d.ts index 040653d61f..53f21f2027 100644 --- a/types/xmldoc/index.d.ts +++ b/types/xmldoc/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Xavier Stouder , Andrew Sheehan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped): // TypeScript Version: 2.1 -export class XmlDocument extends XmlElement{ +export class XmlDocument extends XmlElement { constructor(xmlString: string); doctype: string;