@types/node 6.14.12 → 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.14/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/v6.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 16 Sep 2020 21:16:10 GMT
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 v6.14/base.d.ts CHANGED
@@ -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[], totalLength?: number): 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[] | string | Buffer | ArrayBuffer /*| TypedArray*/): Buffer;
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[], totalLength?: number): 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[]): void;
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[]): void;
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[]): string;
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[], callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1836
- export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
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[], options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
1839
- export function execFile(file: string, args?: string[], options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
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[], options?: ForkOptions): ChildProcess;
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[], options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1885
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1886
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
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[], options?: ExecFileSyncOptionsWithStringEncoding): string;
1935
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1936
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptions): Buffer;
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[] } | Iterable<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[]): void;
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[], port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
2359
- send(msg: Buffer | String | any[], offset: number, length: number, port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
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[] | Buffer,
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[] | Buffer,
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
node v6.14/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "6.14.12",
3
+ "version": "6.14.13",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -54,6 +54,6 @@
54
54
  },
55
55
  "scripts": {},
56
56
  "dependencies": {},
57
- "typesPublisherContentHash": "a04646e1e7ebb8cd80494c2b3c29e20c70a1254cfb9ddded70f3242993af2bf4",
57
+ "typesPublisherContentHash": "bc67298ac72ea3924d614c0dffa81f062cb2b94fee147c6d54cd8e62cd4326ca",
58
58
  "typeScriptVersion": "3.2"
59
59
  }