@types/node 8.10.61 → 8.10.65
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 +3 -3
- node v8.10/base.d.ts +40 -37
- node v8.10/index.d.ts +7 -27
- node v8.10/package.json +3 -15
- 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: Fri, 16 Oct 2020 16:30:57 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
|
-
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), [
|
|
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
|
@@ -134,11 +134,11 @@ declare var SlowBuffer: {
|
|
|
134
134
|
new(str: string, encoding?: string): Buffer;
|
|
135
135
|
new(size: number): Buffer;
|
|
136
136
|
new(size: Uint8Array): Buffer;
|
|
137
|
-
new(array: any
|
|
137
|
+
new(array: ReadonlyArray<any>): Buffer;
|
|
138
138
|
prototype: Buffer;
|
|
139
139
|
isBuffer(obj: any): boolean;
|
|
140
140
|
byteLength(string: string, encoding?: string): number;
|
|
141
|
-
concat(list: Buffer
|
|
141
|
+
concat(list: ReadonlyArray<Buffer>, totalLength?: number): Buffer;
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
// Buffer class
|
|
@@ -183,7 +183,7 @@ declare var Buffer: {
|
|
|
183
183
|
*
|
|
184
184
|
* @param array The octets to store.
|
|
185
185
|
*/
|
|
186
|
-
new(array: any
|
|
186
|
+
new(array: ReadonlyArray<any>): Buffer;
|
|
187
187
|
/**
|
|
188
188
|
* Copies the passed {buffer} data onto a new {Buffer} instance.
|
|
189
189
|
*
|
|
@@ -204,7 +204,7 @@ declare var Buffer: {
|
|
|
204
204
|
* Creates a new Buffer using the passed {data}
|
|
205
205
|
* @param data data to create a new Buffer
|
|
206
206
|
*/
|
|
207
|
-
from(data: any
|
|
207
|
+
from(data: ReadonlyArray<any> | string | Buffer | ArrayBuffer /*| TypedArray*/): Buffer;
|
|
208
208
|
/**
|
|
209
209
|
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
210
210
|
* If provided, the {encoding} parameter identifies the character encoding.
|
|
@@ -243,7 +243,7 @@ declare var Buffer: {
|
|
|
243
243
|
* @param totalLength Total length of the buffers when concatenated.
|
|
244
244
|
* 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
245
|
*/
|
|
246
|
-
concat(list: Buffer
|
|
246
|
+
concat(list: ReadonlyArray<Buffer>, totalLength?: number): Buffer;
|
|
247
247
|
/**
|
|
248
248
|
* The same as buf1.compare(buf2).
|
|
249
249
|
*/
|
|
@@ -556,7 +556,7 @@ declare namespace NodeJS {
|
|
|
556
556
|
getegid(): number;
|
|
557
557
|
setegid(id: number | string): void;
|
|
558
558
|
getgroups(): number[];
|
|
559
|
-
setgroups(groups:
|
|
559
|
+
setgroups(groups: ReadonlyArray<string | number>): void;
|
|
560
560
|
version: string;
|
|
561
561
|
versions: ProcessVersions;
|
|
562
562
|
config: {
|
|
@@ -1023,13 +1023,13 @@ declare module "http" {
|
|
|
1023
1023
|
|
|
1024
1024
|
setTimeout(msecs: number, callback?: () => void): this;
|
|
1025
1025
|
destroy(error: Error): void;
|
|
1026
|
-
setHeader(name: string, value: number | string | string
|
|
1026
|
+
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
|
|
1027
1027
|
getHeader(name: string): number | string | string[] | undefined;
|
|
1028
1028
|
getHeaders(): OutgoingHttpHeaders;
|
|
1029
1029
|
getHeaderNames(): string[];
|
|
1030
1030
|
hasHeader(name: string): boolean;
|
|
1031
1031
|
removeHeader(name: string): void;
|
|
1032
|
-
addTrailers(headers: OutgoingHttpHeaders |
|
|
1032
|
+
addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
|
|
1033
1033
|
flushHeaders(): void;
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
@@ -1781,7 +1781,7 @@ declare module "punycode" {
|
|
|
1781
1781
|
export var ucs2: ucs2;
|
|
1782
1782
|
interface ucs2 {
|
|
1783
1783
|
decode(string: string): number[];
|
|
1784
|
-
encode(codePoints: number
|
|
1784
|
+
encode(codePoints: ReadonlyArray<number>): string;
|
|
1785
1785
|
}
|
|
1786
1786
|
export var version: any;
|
|
1787
1787
|
}
|
|
@@ -2010,6 +2010,8 @@ declare module "child_process" {
|
|
|
2010
2010
|
stdio: StdioStreams;
|
|
2011
2011
|
killed: boolean;
|
|
2012
2012
|
pid: number;
|
|
2013
|
+
readonly exitCode: number | null;
|
|
2014
|
+
readonly signalCode: number | null;
|
|
2013
2015
|
kill(signal?: string): void;
|
|
2014
2016
|
send(message: any, callback?: (error: Error) => void): boolean;
|
|
2015
2017
|
send(message: any, sendHandle?: net.Socket | net.Server, callback?: (error: Error) => void): boolean;
|
|
@@ -2167,48 +2169,48 @@ declare module "child_process" {
|
|
|
2167
2169
|
|
|
2168
2170
|
export function execFile(file: string): ChildProcess;
|
|
2169
2171
|
export function execFile(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): ChildProcess;
|
|
2170
|
-
export function execFile(file: string, args: string
|
|
2171
|
-
export function execFile(file: string, args: string
|
|
2172
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null): ChildProcess;
|
|
2173
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): ChildProcess;
|
|
2172
2174
|
|
|
2173
2175
|
// no `options` definitely means stdout/stderr are `string`.
|
|
2174
2176
|
export function execFile(file: string, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2175
|
-
export function execFile(file: string, args: string
|
|
2177
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2176
2178
|
|
|
2177
2179
|
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
2178
2180
|
export function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
|
|
2179
|
-
export function execFile(file: string, args: string
|
|
2181
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithBufferEncoding, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
|
|
2180
2182
|
|
|
2181
2183
|
// `options` with well known `encoding` means stdout/stderr are definitely `string`.
|
|
2182
2184
|
export function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2183
|
-
export function execFile(file: string, args: string
|
|
2185
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithStringEncoding, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2184
2186
|
|
|
2185
2187
|
// `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
|
|
2186
2188
|
// There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
|
|
2187
2189
|
export function execFile(file: string, options: ExecFileOptionsWithOtherEncoding, callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
|
|
2188
|
-
export function execFile(file: string, args: string
|
|
2190
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithOtherEncoding, callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
|
|
2189
2191
|
|
|
2190
2192
|
// `options` without an `encoding` means stdout/stderr are definitely `string`.
|
|
2191
2193
|
export function execFile(file: string, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2192
|
-
export function execFile(file: string, args: string
|
|
2194
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2193
2195
|
|
|
2194
2196
|
// fallback if nothing else matches. Worst case is always `string | Buffer`.
|
|
2195
2197
|
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;
|
|
2196
|
-
export function execFile(file: string, args: string
|
|
2198
|
+
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;
|
|
2197
2199
|
|
|
2198
2200
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
2199
2201
|
export namespace execFile {
|
|
2200
2202
|
export function __promisify__(file: string): Promise<{ stdout: string, stderr: string }>;
|
|
2201
|
-
export function __promisify__(file: string, args: string
|
|
2203
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null): Promise<{ stdout: string, stderr: string }>;
|
|
2202
2204
|
export function __promisify__(file: string, options: ExecFileOptionsWithBufferEncoding): Promise<{ stdout: Buffer, stderr: Buffer }>;
|
|
2203
|
-
export function __promisify__(file: string, args: string
|
|
2205
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithBufferEncoding): Promise<{ stdout: Buffer, stderr: Buffer }>;
|
|
2204
2206
|
export function __promisify__(file: string, options: ExecFileOptionsWithStringEncoding): Promise<{ stdout: string, stderr: string }>;
|
|
2205
|
-
export function __promisify__(file: string, args: string
|
|
2207
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithStringEncoding): Promise<{ stdout: string, stderr: string }>;
|
|
2206
2208
|
export function __promisify__(file: string, options: ExecFileOptionsWithOtherEncoding): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
2207
|
-
export function __promisify__(file: string, args: string
|
|
2209
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithOtherEncoding): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
2208
2210
|
export function __promisify__(file: string, options: ExecFileOptions): Promise<{ stdout: string, stderr: string }>;
|
|
2209
|
-
export function __promisify__(file: string, args: string
|
|
2211
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptions): Promise<{ stdout: string, stderr: string }>;
|
|
2210
2212
|
export function __promisify__(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
2211
|
-
export function __promisify__(file: string, args: string
|
|
2213
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
2212
2214
|
}
|
|
2213
2215
|
|
|
2214
2216
|
export interface ForkOptions {
|
|
@@ -2223,7 +2225,8 @@ declare module "child_process" {
|
|
|
2223
2225
|
gid?: number;
|
|
2224
2226
|
windowsVerbatimArguments?: boolean;
|
|
2225
2227
|
}
|
|
2226
|
-
export function fork(modulePath: string,
|
|
2228
|
+
export function fork(modulePath: string, options?: ForkOptions): ChildProcess;
|
|
2229
|
+
export function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
|
|
2227
2230
|
|
|
2228
2231
|
export interface SpawnSyncOptions {
|
|
2229
2232
|
cwd?: string;
|
|
@@ -2259,9 +2262,9 @@ declare module "child_process" {
|
|
|
2259
2262
|
export function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
2260
2263
|
export function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
2261
2264
|
export function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
|
|
2262
|
-
export function spawnSync(command: string, args?: string
|
|
2263
|
-
export function spawnSync(command: string, args?: string
|
|
2264
|
-
export function spawnSync(command: string, args?: string
|
|
2265
|
+
export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
2266
|
+
export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
2267
|
+
export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
|
|
2265
2268
|
|
|
2266
2269
|
export interface ExecSyncOptions {
|
|
2267
2270
|
cwd?: string;
|
|
@@ -2311,9 +2314,9 @@ declare module "child_process" {
|
|
|
2311
2314
|
export function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
|
|
2312
2315
|
export function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
2313
2316
|
export function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
|
|
2314
|
-
export function execFileSync(command: string, args?: string
|
|
2315
|
-
export function execFileSync(command: string, args?: string
|
|
2316
|
-
export function execFileSync(command: string, args?: string
|
|
2317
|
+
export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithStringEncoding): string;
|
|
2318
|
+
export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
2319
|
+
export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): Buffer;
|
|
2317
2320
|
}
|
|
2318
2321
|
|
|
2319
2322
|
declare module "url" {
|
|
@@ -2372,7 +2375,7 @@ declare module "url" {
|
|
|
2372
2375
|
}
|
|
2373
2376
|
|
|
2374
2377
|
export class URLSearchParams implements Iterable<[string, string]> {
|
|
2375
|
-
constructor(init?: URLSearchParams | string | { [key: string]: string | string
|
|
2378
|
+
constructor(init?: URLSearchParams | string | { [key: string]: string | ReadonlyArray<string> | undefined } | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
|
|
2376
2379
|
append(name: string, value: string): void;
|
|
2377
2380
|
delete(name: string): void;
|
|
2378
2381
|
entries(): IterableIterator<[string, string]>;
|
|
@@ -2644,7 +2647,7 @@ declare module "dns" {
|
|
|
2644
2647
|
}
|
|
2645
2648
|
|
|
2646
2649
|
export function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
|
|
2647
|
-
export function setServers(servers: string
|
|
2650
|
+
export function setServers(servers: ReadonlyArray<string>): void;
|
|
2648
2651
|
export function getServers(): string[];
|
|
2649
2652
|
|
|
2650
2653
|
// Error codes
|
|
@@ -2974,7 +2977,7 @@ declare module "dgram" {
|
|
|
2974
2977
|
export function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
|
|
2975
2978
|
|
|
2976
2979
|
export class Socket extends events.EventEmitter {
|
|
2977
|
-
send(msg: Buffer | string | Uint8Array | any
|
|
2980
|
+
send(msg: Buffer | string | Uint8Array | ReadonlyArray<any>, port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
2978
2981
|
send(msg: Buffer | string | Uint8Array, offset: number, length: number, port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
2979
2982
|
bind(port?: number, address?: string, callback?: () => void): void;
|
|
2980
2983
|
bind(port?: number, callback?: () => void): void;
|
|
@@ -4954,7 +4957,7 @@ declare module "tls" {
|
|
|
4954
4957
|
* An array of strings or a Buffer naming possible NPN protocols.
|
|
4955
4958
|
* (Protocols should be ordered by their priority.)
|
|
4956
4959
|
*/
|
|
4957
|
-
NPNProtocols?: string
|
|
4960
|
+
NPNProtocols?: ReadonlyArray<string> | ReadonlyArray<Buffer> | ReadonlyArray<Uint8Array> | Buffer | Uint8Array,
|
|
4958
4961
|
/**
|
|
4959
4962
|
* An array of strings or a Buffer naming possible ALPN protocols.
|
|
4960
4963
|
* (Protocols should be ordered by their priority.) When the server
|
|
@@ -4962,7 +4965,7 @@ declare module "tls" {
|
|
|
4962
4965
|
* precedence over NPN and the server does not send an NPN extension
|
|
4963
4966
|
* to the client.
|
|
4964
4967
|
*/
|
|
4965
|
-
ALPNProtocols?: string
|
|
4968
|
+
ALPNProtocols?: ReadonlyArray<string> | ReadonlyArray<Buffer> | ReadonlyArray<Uint8Array> | Buffer | Uint8Array,
|
|
4966
4969
|
/**
|
|
4967
4970
|
* SNICallback(servername, cb) <Function> A function that will be
|
|
4968
4971
|
* called if the client supports SNI TLS extension. Two arguments
|
|
@@ -6860,7 +6863,7 @@ declare module "http2" {
|
|
|
6860
6863
|
readonly headersSent: boolean;
|
|
6861
6864
|
removeHeader(name: string): void;
|
|
6862
6865
|
sendDate: boolean;
|
|
6863
|
-
setHeader(name: string, value: number | string | string
|
|
6866
|
+
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
|
|
6864
6867
|
setTimeout(msecs: number, callback?: () => void): void;
|
|
6865
6868
|
socket: net.Socket | tls.TLSSocket;
|
|
6866
6869
|
statusCode: number;
|
|
@@ -7370,7 +7373,7 @@ declare module "perf_hooks" {
|
|
|
7370
7373
|
* Property buffered defaults to false.
|
|
7371
7374
|
* @param options
|
|
7372
7375
|
*/
|
|
7373
|
-
observe(options: { entryTypes: string
|
|
7376
|
+
observe(options: { entryTypes: ReadonlyArray<string>, buffered?: boolean }): void;
|
|
7374
7377
|
}
|
|
7375
7378
|
|
|
7376
7379
|
export namespace constants {
|
node v8.10/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
5
5
|
// Parambir Singh <https://github.com/parambirs>
|
|
6
6
|
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
7
|
-
// Nicolas Voigt <https://github.com/octo-sniffle>
|
|
8
7
|
// Chigozirim C. <https://github.com/smac89>
|
|
9
8
|
// Flarna <https://github.com/Flarna>
|
|
10
9
|
// Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
|
|
@@ -25,44 +24,25 @@
|
|
|
25
24
|
// Jordi Oliveras Rovira <https://github.com/j-oliveras>
|
|
26
25
|
// Thanik Bhongbhibhat <https://github.com/bhongy>
|
|
27
26
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
28
|
-
// TypeScript
|
|
29
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.1.
|
|
27
|
+
// NOTE: These definitions support NodeJS and TypeScript 3.2.
|
|
30
28
|
|
|
31
29
|
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
32
30
|
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
33
31
|
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
|
|
34
|
-
// - ~/ts3.
|
|
32
|
+
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
|
|
35
33
|
|
|
36
|
-
//
|
|
37
|
-
|
|
38
|
-
// 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" />
|
|
39
36
|
|
|
40
37
|
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
41
38
|
/// <reference path="base.d.ts" />
|
|
42
39
|
|
|
43
|
-
// TypeScript 2
|
|
44
|
-
|
|
45
|
-
// Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
|
|
46
|
-
interface MapConstructor { }
|
|
47
|
-
interface WeakMapConstructor { }
|
|
48
|
-
interface SetConstructor { }
|
|
49
|
-
interface WeakSetConstructor { }
|
|
50
|
-
interface IteratorResult<T> { }
|
|
51
|
-
interface Iterable<T> { }
|
|
52
|
-
interface Iterator<T> {
|
|
53
|
-
next(value?: any): IteratorResult<T>;
|
|
54
|
-
}
|
|
55
|
-
interface IterableIterator<T> { }
|
|
56
|
-
interface SymbolConstructor {
|
|
57
|
-
readonly iterator: symbol;
|
|
58
|
-
}
|
|
59
|
-
declare var Symbol: SymbolConstructor;
|
|
60
|
-
|
|
40
|
+
// TypeScript 3.2-specific augmentations:
|
|
61
41
|
declare module "util" {
|
|
62
42
|
namespace inspect {
|
|
63
|
-
const custom: symbol;
|
|
43
|
+
const custom: unique symbol;
|
|
64
44
|
}
|
|
65
45
|
namespace promisify {
|
|
66
|
-
const custom: symbol;
|
|
46
|
+
const custom: unique symbol;
|
|
67
47
|
}
|
|
68
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.65",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -24,11 +24,6 @@
|
|
|
24
24
|
"url": "https://github.com/WilcoBakker",
|
|
25
25
|
"githubUsername": "WilcoBakker"
|
|
26
26
|
},
|
|
27
|
-
{
|
|
28
|
-
"name": "Nicolas Voigt",
|
|
29
|
-
"url": "https://github.com/octo-sniffle",
|
|
30
|
-
"githubUsername": "octo-sniffle"
|
|
31
|
-
},
|
|
32
27
|
{
|
|
33
28
|
"name": "Chigozirim C.",
|
|
34
29
|
"url": "https://github.com/smac89",
|
|
@@ -127,13 +122,6 @@
|
|
|
127
122
|
],
|
|
128
123
|
"main": "",
|
|
129
124
|
"types": "index.d.ts",
|
|
130
|
-
"typesVersions": {
|
|
131
|
-
">=3.2.0-0": {
|
|
132
|
-
"*": [
|
|
133
|
-
"ts3.2/*"
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
125
|
"repository": {
|
|
138
126
|
"type": "git",
|
|
139
127
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
@@ -141,6 +129,6 @@
|
|
|
141
129
|
},
|
|
142
130
|
"scripts": {},
|
|
143
131
|
"dependencies": {},
|
|
144
|
-
"typesPublisherContentHash": "
|
|
145
|
-
"typeScriptVersion": "3.
|
|
132
|
+
"typesPublisherContentHash": "edc6baeb0c512f046a21909b4e2ae129c8ececdcc2dc00260905fc9c6c4bfd43",
|
|
133
|
+
"typeScriptVersion": "3.2"
|
|
146
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
|
-
}
|