@types/node 8.10.62 → 8.10.66
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 v8.10/README.md +2 -2
- node v8.10/base.d.ts +37 -38
- node v8.10/index.d.ts +7 -26
- node v8.10/package.json +3 -10
- node v8.10/ts3.2/index.d.ts +0 -23
node v8.10/README.md
CHANGED
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (http://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v8.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 28 Oct 2020 18:55:52 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `Buffer`, `NodeJS`, `SlowBuffer`, `
|
|
13
|
+
* Global values: `Buffer`, `NodeJS`, `SlowBuffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
16
|
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Parambir Singh](https://github.com/parambirs), [Wilco Bakker](https://github.com/WilcoBakker), [Chigozirim C.](https://github.com/smac89), [Flarna](https://github.com/Flarna), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [wwwy3y3](https://github.com/wwwy3y3), [Deividas Bakanas](https://github.com/DeividasBakanas), [Kelvin Jin](https://github.com/kjin), [Alvis HT Tang](https://github.com/alvis), [Sebastian Silbermann](https://github.com/eps1lon), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Alberto Schiabel](https://github.com/jkomyno), [Huw](https://github.com/hoo29), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Bruno Scheufler](https://github.com/brunoscheufler), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Lishude](https://github.com/islishude), [Andrew Makarov](https://github.com/r3nya), [Jordi Oliveras Rovira](https://github.com/j-oliveras), and [Thanik Bhongbhibhat](https://github.com/bhongy).
|
node v8.10/base.d.ts
CHANGED
|
@@ -90,7 +90,6 @@ declare function clearImmediate(immediateId: any): void;
|
|
|
90
90
|
|
|
91
91
|
// TODO: change to `type NodeRequireFunction = (id: string) => any;` in next mayor version.
|
|
92
92
|
interface NodeRequireFunction {
|
|
93
|
-
/* tslint:disable-next-line:callable-types */
|
|
94
93
|
(id: string): any;
|
|
95
94
|
}
|
|
96
95
|
|
|
@@ -134,11 +133,11 @@ declare var SlowBuffer: {
|
|
|
134
133
|
new(str: string, encoding?: string): Buffer;
|
|
135
134
|
new(size: number): Buffer;
|
|
136
135
|
new(size: Uint8Array): Buffer;
|
|
137
|
-
new(array: any
|
|
136
|
+
new(array: ReadonlyArray<any>): Buffer;
|
|
138
137
|
prototype: Buffer;
|
|
139
138
|
isBuffer(obj: any): boolean;
|
|
140
139
|
byteLength(string: string, encoding?: string): number;
|
|
141
|
-
concat(list: Buffer
|
|
140
|
+
concat(list: ReadonlyArray<Buffer>, totalLength?: number): Buffer;
|
|
142
141
|
};
|
|
143
142
|
|
|
144
143
|
// Buffer class
|
|
@@ -183,7 +182,7 @@ declare var Buffer: {
|
|
|
183
182
|
*
|
|
184
183
|
* @param array The octets to store.
|
|
185
184
|
*/
|
|
186
|
-
new(array: any
|
|
185
|
+
new(array: ReadonlyArray<any>): Buffer;
|
|
187
186
|
/**
|
|
188
187
|
* Copies the passed {buffer} data onto a new {Buffer} instance.
|
|
189
188
|
*
|
|
@@ -204,7 +203,7 @@ declare var Buffer: {
|
|
|
204
203
|
* Creates a new Buffer using the passed {data}
|
|
205
204
|
* @param data data to create a new Buffer
|
|
206
205
|
*/
|
|
207
|
-
from(data: any
|
|
206
|
+
from(data: ReadonlyArray<any> | string | Buffer | ArrayBuffer /*| TypedArray*/): Buffer;
|
|
208
207
|
/**
|
|
209
208
|
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
210
209
|
* If provided, the {encoding} parameter identifies the character encoding.
|
|
@@ -243,7 +242,7 @@ declare var Buffer: {
|
|
|
243
242
|
* @param totalLength Total length of the buffers when concatenated.
|
|
244
243
|
* 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.
|
|
245
244
|
*/
|
|
246
|
-
concat(list: Buffer
|
|
245
|
+
concat(list: ReadonlyArray<Buffer>, totalLength?: number): Buffer;
|
|
247
246
|
/**
|
|
248
247
|
* The same as buf1.compare(buf2).
|
|
249
248
|
*/
|
|
@@ -556,7 +555,7 @@ declare namespace NodeJS {
|
|
|
556
555
|
getegid(): number;
|
|
557
556
|
setegid(id: number | string): void;
|
|
558
557
|
getgroups(): number[];
|
|
559
|
-
setgroups(groups:
|
|
558
|
+
setgroups(groups: ReadonlyArray<string | number>): void;
|
|
560
559
|
version: string;
|
|
561
560
|
versions: ProcessVersions;
|
|
562
561
|
config: {
|
|
@@ -1023,13 +1022,13 @@ declare module "http" {
|
|
|
1023
1022
|
|
|
1024
1023
|
setTimeout(msecs: number, callback?: () => void): this;
|
|
1025
1024
|
destroy(error: Error): void;
|
|
1026
|
-
setHeader(name: string, value: number | string | string
|
|
1025
|
+
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
|
|
1027
1026
|
getHeader(name: string): number | string | string[] | undefined;
|
|
1028
1027
|
getHeaders(): OutgoingHttpHeaders;
|
|
1029
1028
|
getHeaderNames(): string[];
|
|
1030
1029
|
hasHeader(name: string): boolean;
|
|
1031
1030
|
removeHeader(name: string): void;
|
|
1032
|
-
addTrailers(headers: OutgoingHttpHeaders |
|
|
1031
|
+
addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
|
|
1033
1032
|
flushHeaders(): void;
|
|
1034
1033
|
}
|
|
1035
1034
|
|
|
@@ -1781,7 +1780,7 @@ declare module "punycode" {
|
|
|
1781
1780
|
export var ucs2: ucs2;
|
|
1782
1781
|
interface ucs2 {
|
|
1783
1782
|
decode(string: string): number[];
|
|
1784
|
-
encode(codePoints: number
|
|
1783
|
+
encode(codePoints: ReadonlyArray<number>): string;
|
|
1785
1784
|
}
|
|
1786
1785
|
export var version: any;
|
|
1787
1786
|
}
|
|
@@ -2169,48 +2168,48 @@ declare module "child_process" {
|
|
|
2169
2168
|
|
|
2170
2169
|
export function execFile(file: string): ChildProcess;
|
|
2171
2170
|
export function execFile(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): ChildProcess;
|
|
2172
|
-
export function execFile(file: string, args: string
|
|
2173
|
-
export function execFile(file: string, args: string
|
|
2171
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null): ChildProcess;
|
|
2172
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): ChildProcess;
|
|
2174
2173
|
|
|
2175
2174
|
// no `options` definitely means stdout/stderr are `string`.
|
|
2176
2175
|
export function execFile(file: string, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2177
|
-
export function execFile(file: string, args: string
|
|
2176
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2178
2177
|
|
|
2179
2178
|
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
2180
2179
|
export function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
|
|
2181
|
-
export function execFile(file: string, args: string
|
|
2180
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithBufferEncoding, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
|
|
2182
2181
|
|
|
2183
2182
|
// `options` with well known `encoding` means stdout/stderr are definitely `string`.
|
|
2184
2183
|
export function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2185
|
-
export function execFile(file: string, args: string
|
|
2184
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithStringEncoding, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2186
2185
|
|
|
2187
2186
|
// `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
|
|
2188
2187
|
// There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
|
|
2189
2188
|
export function execFile(file: string, options: ExecFileOptionsWithOtherEncoding, callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
|
|
2190
|
-
export function execFile(file: string, args: string
|
|
2189
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithOtherEncoding, callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
|
|
2191
2190
|
|
|
2192
2191
|
// `options` without an `encoding` means stdout/stderr are definitely `string`.
|
|
2193
2192
|
export function execFile(file: string, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2194
|
-
export function execFile(file: string, args: string
|
|
2193
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2195
2194
|
|
|
2196
2195
|
// fallback if nothing else matches. Worst case is always `string | Buffer`.
|
|
2197
2196
|
export function execFile(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null, callback: ((error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null): ChildProcess;
|
|
2198
|
-
export function execFile(file: string, args: string
|
|
2197
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null, callback: ((error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null): ChildProcess;
|
|
2199
2198
|
|
|
2200
2199
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
2201
2200
|
export namespace execFile {
|
|
2202
2201
|
export function __promisify__(file: string): Promise<{ stdout: string, stderr: string }>;
|
|
2203
|
-
export function __promisify__(file: string, args: string
|
|
2202
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null): Promise<{ stdout: string, stderr: string }>;
|
|
2204
2203
|
export function __promisify__(file: string, options: ExecFileOptionsWithBufferEncoding): Promise<{ stdout: Buffer, stderr: Buffer }>;
|
|
2205
|
-
export function __promisify__(file: string, args: string
|
|
2204
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithBufferEncoding): Promise<{ stdout: Buffer, stderr: Buffer }>;
|
|
2206
2205
|
export function __promisify__(file: string, options: ExecFileOptionsWithStringEncoding): Promise<{ stdout: string, stderr: string }>;
|
|
2207
|
-
export function __promisify__(file: string, args: string
|
|
2206
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithStringEncoding): Promise<{ stdout: string, stderr: string }>;
|
|
2208
2207
|
export function __promisify__(file: string, options: ExecFileOptionsWithOtherEncoding): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
2209
|
-
export function __promisify__(file: string, args: string
|
|
2208
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithOtherEncoding): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
2210
2209
|
export function __promisify__(file: string, options: ExecFileOptions): Promise<{ stdout: string, stderr: string }>;
|
|
2211
|
-
export function __promisify__(file: string, args: string
|
|
2210
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptions): Promise<{ stdout: string, stderr: string }>;
|
|
2212
2211
|
export function __promisify__(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
2213
|
-
export function __promisify__(file: string, args: string
|
|
2212
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
2214
2213
|
}
|
|
2215
2214
|
|
|
2216
2215
|
export interface ForkOptions {
|
|
@@ -2226,7 +2225,7 @@ declare module "child_process" {
|
|
|
2226
2225
|
windowsVerbatimArguments?: boolean;
|
|
2227
2226
|
}
|
|
2228
2227
|
export function fork(modulePath: string, options?: ForkOptions): ChildProcess;
|
|
2229
|
-
export function fork(modulePath: string, args?: string
|
|
2228
|
+
export function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
|
|
2230
2229
|
|
|
2231
2230
|
export interface SpawnSyncOptions {
|
|
2232
2231
|
cwd?: string;
|
|
@@ -2262,9 +2261,9 @@ declare module "child_process" {
|
|
|
2262
2261
|
export function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
2263
2262
|
export function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
2264
2263
|
export function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
|
|
2265
|
-
export function spawnSync(command: string, args?: string
|
|
2266
|
-
export function spawnSync(command: string, args?: string
|
|
2267
|
-
export function spawnSync(command: string, args?: string
|
|
2264
|
+
export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
2265
|
+
export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
2266
|
+
export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
|
|
2268
2267
|
|
|
2269
2268
|
export interface ExecSyncOptions {
|
|
2270
2269
|
cwd?: string;
|
|
@@ -2314,9 +2313,9 @@ declare module "child_process" {
|
|
|
2314
2313
|
export function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
|
|
2315
2314
|
export function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
2316
2315
|
export function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
|
|
2317
|
-
export function execFileSync(command: string, args?: string
|
|
2318
|
-
export function execFileSync(command: string, args?: string
|
|
2319
|
-
export function execFileSync(command: string, args?: string
|
|
2316
|
+
export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithStringEncoding): string;
|
|
2317
|
+
export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
2318
|
+
export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): Buffer;
|
|
2320
2319
|
}
|
|
2321
2320
|
|
|
2322
2321
|
declare module "url" {
|
|
@@ -2375,7 +2374,7 @@ declare module "url" {
|
|
|
2375
2374
|
}
|
|
2376
2375
|
|
|
2377
2376
|
export class URLSearchParams implements Iterable<[string, string]> {
|
|
2378
|
-
constructor(init?: URLSearchParams | string | { [key: string]: string | string
|
|
2377
|
+
constructor(init?: URLSearchParams | string | { [key: string]: string | ReadonlyArray<string> | undefined } | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
|
|
2379
2378
|
append(name: string, value: string): void;
|
|
2380
2379
|
delete(name: string): void;
|
|
2381
2380
|
entries(): IterableIterator<[string, string]>;
|
|
@@ -2647,7 +2646,7 @@ declare module "dns" {
|
|
|
2647
2646
|
}
|
|
2648
2647
|
|
|
2649
2648
|
export function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
|
|
2650
|
-
export function setServers(servers: string
|
|
2649
|
+
export function setServers(servers: ReadonlyArray<string>): void;
|
|
2651
2650
|
export function getServers(): string[];
|
|
2652
2651
|
|
|
2653
2652
|
// Error codes
|
|
@@ -2977,7 +2976,7 @@ declare module "dgram" {
|
|
|
2977
2976
|
export function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
|
|
2978
2977
|
|
|
2979
2978
|
export class Socket extends events.EventEmitter {
|
|
2980
|
-
send(msg: Buffer | string | Uint8Array | any
|
|
2979
|
+
send(msg: Buffer | string | Uint8Array | ReadonlyArray<any>, port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
2981
2980
|
send(msg: Buffer | string | Uint8Array, offset: number, length: number, port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
2982
2981
|
bind(port?: number, address?: string, callback?: () => void): void;
|
|
2983
2982
|
bind(port?: number, callback?: () => void): void;
|
|
@@ -4957,7 +4956,7 @@ declare module "tls" {
|
|
|
4957
4956
|
* An array of strings or a Buffer naming possible NPN protocols.
|
|
4958
4957
|
* (Protocols should be ordered by their priority.)
|
|
4959
4958
|
*/
|
|
4960
|
-
NPNProtocols?: string
|
|
4959
|
+
NPNProtocols?: ReadonlyArray<string> | ReadonlyArray<Buffer> | ReadonlyArray<Uint8Array> | Buffer | Uint8Array,
|
|
4961
4960
|
/**
|
|
4962
4961
|
* An array of strings or a Buffer naming possible ALPN protocols.
|
|
4963
4962
|
* (Protocols should be ordered by their priority.) When the server
|
|
@@ -4965,7 +4964,7 @@ declare module "tls" {
|
|
|
4965
4964
|
* precedence over NPN and the server does not send an NPN extension
|
|
4966
4965
|
* to the client.
|
|
4967
4966
|
*/
|
|
4968
|
-
ALPNProtocols?: string
|
|
4967
|
+
ALPNProtocols?: ReadonlyArray<string> | ReadonlyArray<Buffer> | ReadonlyArray<Uint8Array> | Buffer | Uint8Array,
|
|
4969
4968
|
/**
|
|
4970
4969
|
* SNICallback(servername, cb) <Function> A function that will be
|
|
4971
4970
|
* called if the client supports SNI TLS extension. Two arguments
|
|
@@ -6863,7 +6862,7 @@ declare module "http2" {
|
|
|
6863
6862
|
readonly headersSent: boolean;
|
|
6864
6863
|
removeHeader(name: string): void;
|
|
6865
6864
|
sendDate: boolean;
|
|
6866
|
-
setHeader(name: string, value: number | string | string
|
|
6865
|
+
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
|
|
6867
6866
|
setTimeout(msecs: number, callback?: () => void): void;
|
|
6868
6867
|
socket: net.Socket | tls.TLSSocket;
|
|
6869
6868
|
statusCode: number;
|
|
@@ -7373,7 +7372,7 @@ declare module "perf_hooks" {
|
|
|
7373
7372
|
* Property buffered defaults to false.
|
|
7374
7373
|
* @param options
|
|
7375
7374
|
*/
|
|
7376
|
-
observe(options: { entryTypes: string
|
|
7375
|
+
observe(options: { entryTypes: ReadonlyArray<string>, buffered?: boolean }): void;
|
|
7377
7376
|
}
|
|
7378
7377
|
|
|
7379
7378
|
export namespace constants {
|
node v8.10/index.d.ts
CHANGED
|
@@ -24,44 +24,25 @@
|
|
|
24
24
|
// Jordi Oliveras Rovira <https://github.com/j-oliveras>
|
|
25
25
|
// Thanik Bhongbhibhat <https://github.com/bhongy>
|
|
26
26
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
27
|
-
// TypeScript
|
|
28
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.1.
|
|
27
|
+
// NOTE: These definitions support NodeJS and TypeScript 3.2.
|
|
29
28
|
|
|
30
29
|
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
31
30
|
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
32
31
|
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
|
|
33
|
-
// - ~/ts3.
|
|
32
|
+
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
|
|
34
33
|
|
|
35
|
-
//
|
|
36
|
-
|
|
37
|
-
// prior to TypeScript 3.1, so the older definitions will be found here.
|
|
34
|
+
// Reference required types from the default lib:
|
|
35
|
+
/// <reference lib="es2017" />
|
|
38
36
|
|
|
39
37
|
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
40
38
|
/// <reference path="base.d.ts" />
|
|
41
39
|
|
|
42
|
-
// TypeScript 2
|
|
43
|
-
|
|
44
|
-
// Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
|
|
45
|
-
interface MapConstructor { }
|
|
46
|
-
interface WeakMapConstructor { }
|
|
47
|
-
interface SetConstructor { }
|
|
48
|
-
interface WeakSetConstructor { }
|
|
49
|
-
interface IteratorResult<T> { }
|
|
50
|
-
interface Iterable<T> { }
|
|
51
|
-
interface Iterator<T> {
|
|
52
|
-
next(value?: any): IteratorResult<T>;
|
|
53
|
-
}
|
|
54
|
-
interface IterableIterator<T> { }
|
|
55
|
-
interface SymbolConstructor {
|
|
56
|
-
readonly iterator: symbol;
|
|
57
|
-
}
|
|
58
|
-
declare var Symbol: SymbolConstructor;
|
|
59
|
-
|
|
40
|
+
// TypeScript 3.2-specific augmentations:
|
|
60
41
|
declare module "util" {
|
|
61
42
|
namespace inspect {
|
|
62
|
-
const custom: symbol;
|
|
43
|
+
const custom: unique symbol;
|
|
63
44
|
}
|
|
64
45
|
namespace promisify {
|
|
65
|
-
const custom: symbol;
|
|
46
|
+
const custom: unique symbol;
|
|
66
47
|
}
|
|
67
48
|
}
|
node v8.10/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "8.10.
|
|
3
|
+
"version": "8.10.66",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -122,13 +122,6 @@
|
|
|
122
122
|
],
|
|
123
123
|
"main": "",
|
|
124
124
|
"types": "index.d.ts",
|
|
125
|
-
"typesVersions": {
|
|
126
|
-
">=3.2.0-0": {
|
|
127
|
-
"*": [
|
|
128
|
-
"ts3.2/*"
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
125
|
"repository": {
|
|
133
126
|
"type": "git",
|
|
134
127
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
@@ -136,6 +129,6 @@
|
|
|
136
129
|
},
|
|
137
130
|
"scripts": {},
|
|
138
131
|
"dependencies": {},
|
|
139
|
-
"typesPublisherContentHash": "
|
|
140
|
-
"typeScriptVersion": "3.
|
|
132
|
+
"typesPublisherContentHash": "bbdc3f41bff51f7e23469a2e9fc3ee831a778f6bea4de0a8f85e86b868dd7bd3",
|
|
133
|
+
"typeScriptVersion": "3.2"
|
|
141
134
|
}
|
node v8.10/ts3.2/index.d.ts
DELETED
|
@@ -1,23 +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="es2017" />
|
|
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:
|
|
16
|
-
declare module "util" {
|
|
17
|
-
namespace inspect {
|
|
18
|
-
const custom: unique symbol;
|
|
19
|
-
}
|
|
20
|
-
namespace promisify {
|
|
21
|
-
const custom: unique symbol;
|
|
22
|
-
}
|
|
23
|
-
}
|