@types/node 6.14.9 → 6.14.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {node v6 → node v6.14}/LICENSE +21 -21
- node v6.14/README.md +16 -0
- {node v6 → node v6.14}/base.d.ts +24 -24
- node v6.14/index.d.ts +25 -0
- {node v6 → node v6.14}/package.json +4 -11
- node v6/README.md +0 -16
- node v6/index.d.ts +0 -48
- node v6/ts3.2/index.d.ts +0 -15
{node v6 → node v6.14}/LICENSE
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE
|
node v6.14/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
> `npm install --save @types/node`
|
|
3
|
+
|
|
4
|
+
# Summary
|
|
5
|
+
This package contains type definitions for Node.js (http://nodejs.org/).
|
|
6
|
+
|
|
7
|
+
# Details
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v6.
|
|
9
|
+
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Fri, 16 Oct 2020 16:30:57 GMT
|
|
12
|
+
* Dependencies: none
|
|
13
|
+
* Global values: `Buffer`, `NodeJS`, `SlowBuffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
|
+
|
|
15
|
+
# Credits
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Wilco Bakker](https://github.com/WilcoBakker), [Thomas Bouldin](https://github.com/inlined), [Sebastian Silbermann](https://github.com/eps1lon), [Alorel](https://github.com/Alorel), [Hoàng Văn Khải](https://github.com/KSXGitHub), and [Sander Koenders](https://github.com/Archcry).
|
{node v6 → node v6.14}/base.d.ts
RENAMED
|
@@ -93,7 +93,7 @@ declare var SlowBuffer: {
|
|
|
93
93
|
prototype: Buffer;
|
|
94
94
|
isBuffer(obj: any): boolean;
|
|
95
95
|
byteLength(string: string, encoding?: string): number;
|
|
96
|
-
concat(list: Buffer
|
|
96
|
+
concat(list: ReadonlyArray<Buffer>, totalLength?: number): Buffer;
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
|
|
@@ -160,7 +160,7 @@ declare var Buffer: {
|
|
|
160
160
|
* Creates a new Buffer using the passed {data}
|
|
161
161
|
* @param data data to create a new Buffer
|
|
162
162
|
*/
|
|
163
|
-
from(data: any
|
|
163
|
+
from(data: ReadonlyArray<any> | string | Buffer | ArrayBuffer /*| TypedArray*/): Buffer;
|
|
164
164
|
/**
|
|
165
165
|
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
166
166
|
* If provided, the {encoding} parameter identifies the character encoding.
|
|
@@ -199,7 +199,7 @@ declare var Buffer: {
|
|
|
199
199
|
* @param totalLength Total length of the buffers when concatenated.
|
|
200
200
|
* If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
|
|
201
201
|
*/
|
|
202
|
-
concat(list: Buffer
|
|
202
|
+
concat(list: ReadonlyArray<Buffer>, totalLength?: number): Buffer;
|
|
203
203
|
/**
|
|
204
204
|
* The same as buf1.compare(buf2).
|
|
205
205
|
*/
|
|
@@ -799,7 +799,7 @@ declare module "http" {
|
|
|
799
799
|
statusCode: number;
|
|
800
800
|
statusMessage: string;
|
|
801
801
|
headersSent: boolean;
|
|
802
|
-
setHeader(name: string, value: string | string
|
|
802
|
+
setHeader(name: string, value: string | ReadonlyArray<string>): void;
|
|
803
803
|
setTimeout(msecs: number, callback: Function): ServerResponse;
|
|
804
804
|
sendDate: boolean;
|
|
805
805
|
getHeader(name: string): string;
|
|
@@ -830,7 +830,7 @@ declare module "http" {
|
|
|
830
830
|
setNoDelay(noDelay?: boolean): void;
|
|
831
831
|
setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
|
|
832
832
|
|
|
833
|
-
setHeader(name: string, value: string | string
|
|
833
|
+
setHeader(name: string, value: string | ReadonlyArray<string>): void;
|
|
834
834
|
getHeader(name: string): string;
|
|
835
835
|
removeHeader(name: string): void;
|
|
836
836
|
addTrailers(headers: OutgoingHttpHeaders): void;
|
|
@@ -1492,7 +1492,7 @@ declare module "punycode" {
|
|
|
1492
1492
|
export var ucs2: ucs2;
|
|
1493
1493
|
interface ucs2 {
|
|
1494
1494
|
decode(string: string): number[];
|
|
1495
|
-
encode(codePoints: number
|
|
1495
|
+
encode(codePoints: ReadonlyArray<number>): string;
|
|
1496
1496
|
}
|
|
1497
1497
|
export var version: any;
|
|
1498
1498
|
}
|
|
@@ -1832,11 +1832,11 @@ declare module "child_process" {
|
|
|
1832
1832
|
// usage. child_process.execFile("file.sh", {encoding: null as string}, (err, stdout, stderr) => {});
|
|
1833
1833
|
export function execFile(file: string, options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
|
|
1834
1834
|
export function execFile(file: string, options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
|
|
1835
|
-
export function execFile(file: string, args?: string
|
|
1836
|
-
export function execFile(file: string, args?: string
|
|
1835
|
+
export function execFile(file: string, args?: ReadonlyArray<string>, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
|
|
1836
|
+
export function execFile(file: string, args?: ReadonlyArray<string>, options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
|
|
1837
1837
|
// usage. child_process.execFile("file.sh", ["foo"], {encoding: null as string}, (err, stdout, stderr) => {});
|
|
1838
|
-
export function execFile(file: string, args?: string
|
|
1839
|
-
export function execFile(file: string, args?: string
|
|
1838
|
+
export function execFile(file: string, args?: ReadonlyArray<string>, options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
|
|
1839
|
+
export function execFile(file: string, args?: ReadonlyArray<string>, options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
|
|
1840
1840
|
|
|
1841
1841
|
export interface ForkOptions {
|
|
1842
1842
|
cwd?: string;
|
|
@@ -1847,7 +1847,7 @@ declare module "child_process" {
|
|
|
1847
1847
|
uid?: number;
|
|
1848
1848
|
gid?: number;
|
|
1849
1849
|
}
|
|
1850
|
-
export function fork(modulePath: string, args?: string
|
|
1850
|
+
export function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
|
|
1851
1851
|
|
|
1852
1852
|
export interface SpawnSyncOptions {
|
|
1853
1853
|
cwd?: string;
|
|
@@ -1881,9 +1881,9 @@ declare module "child_process" {
|
|
|
1881
1881
|
export function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
1882
1882
|
export function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
1883
1883
|
export function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
|
|
1884
|
-
export function spawnSync(command: string, args?: string
|
|
1885
|
-
export function spawnSync(command: string, args?: string
|
|
1886
|
-
export function spawnSync(command: string, args?: string
|
|
1884
|
+
export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
1885
|
+
export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
1886
|
+
export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
|
|
1887
1887
|
|
|
1888
1888
|
export interface ExecSyncOptions {
|
|
1889
1889
|
cwd?: string;
|
|
@@ -1931,9 +1931,9 @@ declare module "child_process" {
|
|
|
1931
1931
|
export function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
|
|
1932
1932
|
export function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
1933
1933
|
export function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
|
|
1934
|
-
export function execFileSync(command: string, args?: string
|
|
1935
|
-
export function execFileSync(command: string, args?: string
|
|
1936
|
-
export function execFileSync(command: string, args?: string
|
|
1934
|
+
export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithStringEncoding): string;
|
|
1935
|
+
export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
1936
|
+
export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): Buffer;
|
|
1937
1937
|
}
|
|
1938
1938
|
|
|
1939
1939
|
declare module "url" {
|
|
@@ -1973,7 +1973,7 @@ declare module "url" {
|
|
|
1973
1973
|
}
|
|
1974
1974
|
|
|
1975
1975
|
export class URLSearchParams implements Iterable<string[]> {
|
|
1976
|
-
constructor(init?: URLSearchParams | string | { [key: string]: string | string
|
|
1976
|
+
constructor(init?: URLSearchParams | string | { [key: string]: string | ReadonlyArray<string> } | ReadonlyArray<Iterable<string>> );
|
|
1977
1977
|
append(name: string, value: string): void;
|
|
1978
1978
|
delete(name: string): void;
|
|
1979
1979
|
entries(): Iterator<string[]>;
|
|
@@ -2096,7 +2096,7 @@ declare module "dns" {
|
|
|
2096
2096
|
export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
|
2097
2097
|
|
|
2098
2098
|
export function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
|
|
2099
|
-
export function setServers(servers: string
|
|
2099
|
+
export function setServers(servers: ReadonlyArray<string>): void;
|
|
2100
2100
|
|
|
2101
2101
|
//Error codes
|
|
2102
2102
|
export var NODATA: string;
|
|
@@ -2355,8 +2355,8 @@ declare module "dgram" {
|
|
|
2355
2355
|
export function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
|
|
2356
2356
|
|
|
2357
2357
|
export interface Socket extends events.EventEmitter {
|
|
2358
|
-
send(msg: Buffer | String | any
|
|
2359
|
-
send(msg: Buffer | String | any
|
|
2358
|
+
send(msg: Buffer | String | ReadonlyArray<any>, port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
|
|
2359
|
+
send(msg: Buffer | String | ReadonlyArray<any>, offset: number, length: number, port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
|
|
2360
2360
|
bind(port?: number, address?: string, callback?: () => void): void;
|
|
2361
2361
|
bind(options: BindOptions, callback?: Function): void;
|
|
2362
2362
|
close(callback?: any): void;
|
|
@@ -3190,7 +3190,7 @@ declare module "tls" {
|
|
|
3190
3190
|
* An array of strings or a Buffer naming possible NPN protocols.
|
|
3191
3191
|
* (Protocols should be ordered by their priority.)
|
|
3192
3192
|
*/
|
|
3193
|
-
NPNProtocols?: string
|
|
3193
|
+
NPNProtocols?: ReadonlyArray<string> | Buffer,
|
|
3194
3194
|
/**
|
|
3195
3195
|
* An array of strings or a Buffer naming possible ALPN protocols.
|
|
3196
3196
|
* (Protocols should be ordered by their priority.) When the server
|
|
@@ -3198,7 +3198,7 @@ declare module "tls" {
|
|
|
3198
3198
|
* precedence over NPN and the server does not send an NPN extension
|
|
3199
3199
|
* to the client.
|
|
3200
3200
|
*/
|
|
3201
|
-
ALPNProtocols?: string
|
|
3201
|
+
ALPNProtocols?: ReadonlyArray<string> | Buffer,
|
|
3202
3202
|
/**
|
|
3203
3203
|
* SNICallback(servername, cb) <Function> A function that will be
|
|
3204
3204
|
* called if the client supports SNI TLS extension. Two arguments
|
|
@@ -3864,7 +3864,7 @@ declare module "stream" {
|
|
|
3864
3864
|
}
|
|
3865
3865
|
|
|
3866
3866
|
export interface TransformOptions extends DuplexOptions {
|
|
3867
|
-
transform?: (chunk:
|
|
3867
|
+
transform?: (chunk: any, encoding: string, callback: Function) => any;
|
|
3868
3868
|
flush?: (callback: Function) => any;
|
|
3869
3869
|
}
|
|
3870
3870
|
|
node v6.14/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Type definitions for Node.js 6.14
|
|
2
|
+
// Project: http://nodejs.org/
|
|
3
|
+
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
|
+
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
5
|
+
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
6
|
+
// Thomas Bouldin <https://github.com/inlined>
|
|
7
|
+
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
8
|
+
// Alorel <https://github.com/Alorel>
|
|
9
|
+
// Hoàng Văn Khải <https://github.com/KSXGitHub>
|
|
10
|
+
// Sander Koenders <https://github.com/Archcry>
|
|
11
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
12
|
+
// NOTE: These definitions support NodeJS and TypeScript 3.2 and above.
|
|
13
|
+
|
|
14
|
+
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
15
|
+
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
16
|
+
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
|
|
17
|
+
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
|
|
18
|
+
|
|
19
|
+
// Reference required types from the default lib:
|
|
20
|
+
/// <reference lib="es2015" />
|
|
21
|
+
|
|
22
|
+
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
23
|
+
/// <reference path="base.d.ts" />
|
|
24
|
+
|
|
25
|
+
// TypeScript 3.2-specific augmentations:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "6.14.
|
|
3
|
+
"version": "6.14.13",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -46,14 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
],
|
|
48
48
|
"main": "",
|
|
49
|
-
"types": "index",
|
|
50
|
-
"typesVersions": {
|
|
51
|
-
">=3.2.0-0": {
|
|
52
|
-
"*": [
|
|
53
|
-
"ts3.2/*"
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
},
|
|
49
|
+
"types": "index.d.ts",
|
|
57
50
|
"repository": {
|
|
58
51
|
"type": "git",
|
|
59
52
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
@@ -61,6 +54,6 @@
|
|
|
61
54
|
},
|
|
62
55
|
"scripts": {},
|
|
63
56
|
"dependencies": {},
|
|
64
|
-
"typesPublisherContentHash": "
|
|
65
|
-
"typeScriptVersion": "2
|
|
57
|
+
"typesPublisherContentHash": "bc67298ac72ea3924d614c0dffa81f062cb2b94fee147c6d54cd8e62cd4326ca",
|
|
58
|
+
"typeScriptVersion": "3.2"
|
|
66
59
|
}
|
node v6/README.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/node`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for Node.js (http://nodejs.org/).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v6
|
|
9
|
-
|
|
10
|
-
Additional Details
|
|
11
|
-
* Last updated: Wed, 30 Oct 2019 15:44:47 GMT
|
|
12
|
-
* Dependencies: none
|
|
13
|
-
* Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
|
|
14
|
-
|
|
15
|
-
# Credits
|
|
16
|
-
These definitions were written by Microsoft TypeScript <https://github.com/Microsoft>, DefinitelyTyped <https://github.com/DefinitelyTyped>, Wilco Bakker <https://github.com/WilcoBakker>, Thomas Bouldin <https://github.com/inlined>, Sebastian Silbermann <https://github.com/eps1lon>, Alorel <https://github.com/Alorel>, Hoàng Văn Khải <https://github.com/KSXGitHub>, and Sander Koenders <https://github.com/Archcry>.
|
node v6/index.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Type definitions for Node.js 6.14
|
|
2
|
-
// Project: http://nodejs.org/
|
|
3
|
-
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
|
-
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
5
|
-
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
6
|
-
// Thomas Bouldin <https://github.com/inlined>
|
|
7
|
-
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
8
|
-
// Alorel <https://github.com/Alorel>
|
|
9
|
-
// Hoàng Văn Khải <https://github.com/KSXGitHub>
|
|
10
|
-
// Sander Koenders <https://github.com/Archcry>
|
|
11
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
12
|
-
/************************************************
|
|
13
|
-
* *
|
|
14
|
-
* Node.js v6.x API *
|
|
15
|
-
* *
|
|
16
|
-
************************************************/
|
|
17
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.1.
|
|
18
|
-
|
|
19
|
-
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
20
|
-
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
21
|
-
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
|
|
22
|
-
// - ~/ts3.1/index.d.ts - Definitions specific to TypeScript 3.1
|
|
23
|
-
|
|
24
|
-
// NOTE: Augmentations for TypeScript 3.1 and later should use individual files for overrides
|
|
25
|
-
// within the respective ~/ts3.1 (or later) folder. However, this is disallowed for versions
|
|
26
|
-
// prior to TypeScript 3.1, so the older definitions will be found here.
|
|
27
|
-
|
|
28
|
-
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
29
|
-
/// <reference path="base.d.ts" />
|
|
30
|
-
|
|
31
|
-
// TypeScript 2.1-specific augmentations:
|
|
32
|
-
|
|
33
|
-
// Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
|
|
34
|
-
interface MapConstructor { }
|
|
35
|
-
interface WeakMapConstructor { }
|
|
36
|
-
interface SetConstructor { }
|
|
37
|
-
interface WeakSetConstructor { }
|
|
38
|
-
interface Iterable<T> { }
|
|
39
|
-
interface Iterator<T> {
|
|
40
|
-
next(value?: any): IteratorResult<T>;
|
|
41
|
-
}
|
|
42
|
-
interface IterableIterator<T> { }
|
|
43
|
-
interface IteratorResult<T> { }
|
|
44
|
-
interface AsyncIterableIterator<T> {}
|
|
45
|
-
interface SymbolConstructor {
|
|
46
|
-
readonly iterator: symbol;
|
|
47
|
-
}
|
|
48
|
-
declare var Symbol: SymbolConstructor;
|
node v6/ts3.2/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.2.
|
|
2
|
-
|
|
3
|
-
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
4
|
-
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
5
|
-
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
|
|
6
|
-
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
|
|
7
|
-
|
|
8
|
-
// Reference required types from the default lib:
|
|
9
|
-
/// <reference lib="es2015" />
|
|
10
|
-
|
|
11
|
-
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
12
|
-
// tslint:disable-next-line:no-bad-reference
|
|
13
|
-
/// <reference path="../base.d.ts" />
|
|
14
|
-
|
|
15
|
-
// TypeScript 3.2-specific augmentations:
|