@types/node 8.10.64 → 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 +1 -1
- node v8.10/base.d.ts +37 -37
- node v8.10/package.json +2 -2
node v8.10/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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
13
|
* Global values: `Buffer`, `NodeJS`, `SlowBuffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
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
|
}
|
|
@@ -2169,48 +2169,48 @@ declare module "child_process" {
|
|
|
2169
2169
|
|
|
2170
2170
|
export function execFile(file: string): ChildProcess;
|
|
2171
2171
|
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
|
|
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;
|
|
2174
2174
|
|
|
2175
2175
|
// no `options` definitely means stdout/stderr are `string`.
|
|
2176
2176
|
export function execFile(file: string, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2177
|
-
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;
|
|
2178
2178
|
|
|
2179
2179
|
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
2180
2180
|
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
|
|
2181
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithBufferEncoding, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
|
|
2182
2182
|
|
|
2183
2183
|
// `options` with well known `encoding` means stdout/stderr are definitely `string`.
|
|
2184
2184
|
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
|
|
2185
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithStringEncoding, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2186
2186
|
|
|
2187
2187
|
// `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
|
|
2188
2188
|
// There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
|
|
2189
2189
|
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
|
|
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;
|
|
2191
2191
|
|
|
2192
2192
|
// `options` without an `encoding` means stdout/stderr are definitely `string`.
|
|
2193
2193
|
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
|
|
2194
|
+
export function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
2195
2195
|
|
|
2196
2196
|
// fallback if nothing else matches. Worst case is always `string | Buffer`.
|
|
2197
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;
|
|
2198
|
-
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;
|
|
2199
2199
|
|
|
2200
2200
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
2201
2201
|
export namespace execFile {
|
|
2202
2202
|
export function __promisify__(file: string): Promise<{ stdout: string, stderr: string }>;
|
|
2203
|
-
export function __promisify__(file: string, args: string
|
|
2203
|
+
export function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null): Promise<{ stdout: string, stderr: string }>;
|
|
2204
2204
|
export function __promisify__(file: string, options: ExecFileOptionsWithBufferEncoding): Promise<{ stdout: Buffer, stderr: Buffer }>;
|
|
2205
|
-
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 }>;
|
|
2206
2206
|
export function __promisify__(file: string, options: ExecFileOptionsWithStringEncoding): Promise<{ stdout: string, stderr: string }>;
|
|
2207
|
-
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 }>;
|
|
2208
2208
|
export function __promisify__(file: string, options: ExecFileOptionsWithOtherEncoding): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
2209
|
-
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 }>;
|
|
2210
2210
|
export function __promisify__(file: string, options: ExecFileOptions): Promise<{ stdout: string, stderr: string }>;
|
|
2211
|
-
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 }>;
|
|
2212
2212
|
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
|
|
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 }>;
|
|
2214
2214
|
}
|
|
2215
2215
|
|
|
2216
2216
|
export interface ForkOptions {
|
|
@@ -2226,7 +2226,7 @@ declare module "child_process" {
|
|
|
2226
2226
|
windowsVerbatimArguments?: boolean;
|
|
2227
2227
|
}
|
|
2228
2228
|
export function fork(modulePath: string, options?: ForkOptions): ChildProcess;
|
|
2229
|
-
export function fork(modulePath: string, args?: string
|
|
2229
|
+
export function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
|
|
2230
2230
|
|
|
2231
2231
|
export interface SpawnSyncOptions {
|
|
2232
2232
|
cwd?: string;
|
|
@@ -2262,9 +2262,9 @@ declare module "child_process" {
|
|
|
2262
2262
|
export function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
2263
2263
|
export function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
2264
2264
|
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
|
|
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>;
|
|
2268
2268
|
|
|
2269
2269
|
export interface ExecSyncOptions {
|
|
2270
2270
|
cwd?: string;
|
|
@@ -2314,9 +2314,9 @@ declare module "child_process" {
|
|
|
2314
2314
|
export function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
|
|
2315
2315
|
export function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
2316
2316
|
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
|
|
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;
|
|
2320
2320
|
}
|
|
2321
2321
|
|
|
2322
2322
|
declare module "url" {
|
|
@@ -2375,7 +2375,7 @@ declare module "url" {
|
|
|
2375
2375
|
}
|
|
2376
2376
|
|
|
2377
2377
|
export class URLSearchParams implements Iterable<[string, string]> {
|
|
2378
|
-
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]>);
|
|
2379
2379
|
append(name: string, value: string): void;
|
|
2380
2380
|
delete(name: string): void;
|
|
2381
2381
|
entries(): IterableIterator<[string, string]>;
|
|
@@ -2647,7 +2647,7 @@ declare module "dns" {
|
|
|
2647
2647
|
}
|
|
2648
2648
|
|
|
2649
2649
|
export function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
|
|
2650
|
-
export function setServers(servers: string
|
|
2650
|
+
export function setServers(servers: ReadonlyArray<string>): void;
|
|
2651
2651
|
export function getServers(): string[];
|
|
2652
2652
|
|
|
2653
2653
|
// Error codes
|
|
@@ -2977,7 +2977,7 @@ declare module "dgram" {
|
|
|
2977
2977
|
export function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
|
|
2978
2978
|
|
|
2979
2979
|
export class Socket extends events.EventEmitter {
|
|
2980
|
-
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;
|
|
2981
2981
|
send(msg: Buffer | string | Uint8Array, offset: number, length: number, port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
2982
2982
|
bind(port?: number, address?: string, callback?: () => void): void;
|
|
2983
2983
|
bind(port?: number, callback?: () => void): void;
|
|
@@ -4957,7 +4957,7 @@ declare module "tls" {
|
|
|
4957
4957
|
* An array of strings or a Buffer naming possible NPN protocols.
|
|
4958
4958
|
* (Protocols should be ordered by their priority.)
|
|
4959
4959
|
*/
|
|
4960
|
-
NPNProtocols?: string
|
|
4960
|
+
NPNProtocols?: ReadonlyArray<string> | ReadonlyArray<Buffer> | ReadonlyArray<Uint8Array> | Buffer | Uint8Array,
|
|
4961
4961
|
/**
|
|
4962
4962
|
* An array of strings or a Buffer naming possible ALPN protocols.
|
|
4963
4963
|
* (Protocols should be ordered by their priority.) When the server
|
|
@@ -4965,7 +4965,7 @@ declare module "tls" {
|
|
|
4965
4965
|
* precedence over NPN and the server does not send an NPN extension
|
|
4966
4966
|
* to the client.
|
|
4967
4967
|
*/
|
|
4968
|
-
ALPNProtocols?: string
|
|
4968
|
+
ALPNProtocols?: ReadonlyArray<string> | ReadonlyArray<Buffer> | ReadonlyArray<Uint8Array> | Buffer | Uint8Array,
|
|
4969
4969
|
/**
|
|
4970
4970
|
* SNICallback(servername, cb) <Function> A function that will be
|
|
4971
4971
|
* called if the client supports SNI TLS extension. Two arguments
|
|
@@ -6863,7 +6863,7 @@ declare module "http2" {
|
|
|
6863
6863
|
readonly headersSent: boolean;
|
|
6864
6864
|
removeHeader(name: string): void;
|
|
6865
6865
|
sendDate: boolean;
|
|
6866
|
-
setHeader(name: string, value: number | string | string
|
|
6866
|
+
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
|
|
6867
6867
|
setTimeout(msecs: number, callback?: () => void): void;
|
|
6868
6868
|
socket: net.Socket | tls.TLSSocket;
|
|
6869
6869
|
statusCode: number;
|
|
@@ -7373,7 +7373,7 @@ declare module "perf_hooks" {
|
|
|
7373
7373
|
* Property buffered defaults to false.
|
|
7374
7374
|
* @param options
|
|
7375
7375
|
*/
|
|
7376
|
-
observe(options: { entryTypes: string
|
|
7376
|
+
observe(options: { entryTypes: ReadonlyArray<string>, buffered?: boolean }): void;
|
|
7377
7377
|
}
|
|
7378
7378
|
|
|
7379
7379
|
export namespace constants {
|
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": [
|
|
@@ -129,6 +129,6 @@
|
|
|
129
129
|
},
|
|
130
130
|
"scripts": {},
|
|
131
131
|
"dependencies": {},
|
|
132
|
-
"typesPublisherContentHash": "
|
|
132
|
+
"typesPublisherContentHash": "edc6baeb0c512f046a21909b4e2ae129c8ececdcc2dc00260905fc9c6c4bfd43",
|
|
133
133
|
"typeScriptVersion": "3.2"
|
|
134
134
|
}
|