@types/node 7.10.10 → 7.10.14

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 v7.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/v7.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 13 Apr 2020 18:57:47 GMT
11
+ * Last updated: Fri, 16 Oct 2020 16:30:57 GMT
12
12
  * Dependencies: none
13
- * Global values: `Buffer`, `NodeJS`, `SlowBuffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
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), [Christian Vaagland Tellnes](https://github.com/tellnes), [Wilco Bakker](https://github.com/WilcoBakker), [Sebastian Silbermann](https://github.com/eps1lon), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Sander Koenders](https://github.com/Archcry), and [Jordi Oliveras Rovira](https://github.com/j-oliveras).
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), [Sebastian Silbermann](https://github.com/eps1lon), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Sander Koenders](https://github.com/Archcry), and [Jordi Oliveras Rovira](https://github.com/j-oliveras).
node v7.10/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
  */
@@ -802,7 +802,7 @@ declare module "http" {
802
802
  statusCode: number;
803
803
  statusMessage: string;
804
804
  headersSent: boolean;
805
- setHeader(name: string, value: string | string[]): void;
805
+ setHeader(name: string, value: string | ReadonlyArray<string>): void;
806
806
  setTimeout(msecs: number, callback: Function): ServerResponse;
807
807
  sendDate: boolean;
808
808
  getHeader(name: string): string;
@@ -833,7 +833,7 @@ declare module "http" {
833
833
  setNoDelay(noDelay?: boolean): void;
834
834
  setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
835
835
 
836
- setHeader(name: string, value: string | string[]): void;
836
+ setHeader(name: string, value: string | ReadonlyArray<string>): void;
837
837
  getHeader(name: string): string;
838
838
  removeHeader(name: string): void;
839
839
  addTrailers(headers: OutgoingHttpHeaders): void;
@@ -1543,7 +1543,7 @@ declare module "punycode" {
1543
1543
  export var ucs2: ucs2;
1544
1544
  interface ucs2 {
1545
1545
  decode(string: string): number[];
1546
- encode(codePoints: number[]): string;
1546
+ encode(codePoints: ReadonlyArray<number>): string;
1547
1547
  }
1548
1548
  export var version: any;
1549
1549
  }
@@ -1880,11 +1880,11 @@ declare module "child_process" {
1880
1880
  // usage. child_process.execFile("file.sh", {encoding: null as string}, (err, stdout, stderr) => {});
1881
1881
  export function execFile(file: string, options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
1882
1882
  export function execFile(file: string, options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1883
- export function execFile(file: string, args?: string[], callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1884
- export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1883
+ export function execFile(file: string, args?: ReadonlyArray<string>, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1884
+ export function execFile(file: string, args?: ReadonlyArray<string>, options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1885
1885
  // usage. child_process.execFile("file.sh", ["foo"], {encoding: null as string}, (err, stdout, stderr) => {});
1886
- export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
1887
- export function execFile(file: string, args?: string[], options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1886
+ export function execFile(file: string, args?: ReadonlyArray<string>, options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
1887
+ export function execFile(file: string, args?: ReadonlyArray<string>, options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1888
1888
 
1889
1889
  export interface ForkOptions {
1890
1890
  cwd?: string;
@@ -1896,7 +1896,7 @@ declare module "child_process" {
1896
1896
  uid?: number;
1897
1897
  gid?: number;
1898
1898
  }
1899
- export function fork(modulePath: string, args?: string[], options?: ForkOptions): ChildProcess;
1899
+ export function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
1900
1900
 
1901
1901
  export interface SpawnSyncOptions {
1902
1902
  cwd?: string;
@@ -1930,9 +1930,9 @@ declare module "child_process" {
1930
1930
  export function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1931
1931
  export function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1932
1932
  export function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
1933
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1934
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1935
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
1933
+ export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1934
+ export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1935
+ export function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
1936
1936
 
1937
1937
  export interface ExecSyncOptions {
1938
1938
  cwd?: string;
@@ -1980,9 +1980,9 @@ declare module "child_process" {
1980
1980
  export function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
1981
1981
  export function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1982
1982
  export function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
1983
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptionsWithStringEncoding): string;
1984
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1985
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptions): Buffer;
1983
+ export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithStringEncoding): string;
1984
+ export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1985
+ export function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): Buffer;
1986
1986
  }
1987
1987
 
1988
1988
  declare module "url" {
@@ -2022,7 +2022,7 @@ declare module "url" {
2022
2022
  }
2023
2023
 
2024
2024
  export class URLSearchParams implements Iterable<string[]> {
2025
- constructor(init?: URLSearchParams | string | { [key: string]: string | string[] } | Iterable<string[]> );
2025
+ constructor(init?: URLSearchParams | string | { [key: string]: string | ReadonlyArray<string> } | ReadonlyArray<Iterable<string>> );
2026
2026
  append(name: string, value: string): void;
2027
2027
  delete(name: string): void;
2028
2028
  entries(): Iterator<string[]>;
@@ -2164,7 +2164,7 @@ declare module "dns" {
2164
2164
  export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void;
2165
2165
 
2166
2166
  export function reverse(ip: string, callback: (err: NodeJS.ErrnoException, hostnames: string[]) => void): void;
2167
- export function setServers(servers: string[]): void;
2167
+ export function setServers(servers: ReadonlyArray<string>): void;
2168
2168
 
2169
2169
  //Error codes
2170
2170
  export var NODATA: string;
@@ -2428,8 +2428,8 @@ declare module "dgram" {
2428
2428
  export function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
2429
2429
 
2430
2430
  export interface Socket extends events.EventEmitter {
2431
- send(msg: Buffer | String | any[], port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
2432
- send(msg: Buffer | String | any[], offset: number, length: number, port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
2431
+ send(msg: Buffer | String | ReadonlyArray<any>, port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
2432
+ send(msg: Buffer | String | ReadonlyArray<any>, offset: number, length: number, port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
2433
2433
  bind(port?: number, address?: string, callback?: () => void): void;
2434
2434
  bind(options: BindOptions, callback?: Function): void;
2435
2435
  close(callback?: () => void): void;
@@ -3240,7 +3240,7 @@ declare module "tls" {
3240
3240
  * An array of strings or a Buffer naming possible NPN protocols.
3241
3241
  * (Protocols should be ordered by their priority.)
3242
3242
  */
3243
- NPNProtocols?: string[] | Buffer,
3243
+ NPNProtocols?: ReadonlyArray<string> | Buffer,
3244
3244
  /**
3245
3245
  * An array of strings or a Buffer naming possible ALPN protocols.
3246
3246
  * (Protocols should be ordered by their priority.) When the server
@@ -3248,7 +3248,7 @@ declare module "tls" {
3248
3248
  * precedence over NPN and the server does not send an NPN extension
3249
3249
  * to the client.
3250
3250
  */
3251
- ALPNProtocols?: string[] | Buffer,
3251
+ ALPNProtocols?: ReadonlyArray<string> | Buffer,
3252
3252
  /**
3253
3253
  * SNICallback(servername, cb) <Function> A function that will be
3254
3254
  * called if the client supports SNI TLS extension. Two arguments
node v7.10/index.d.ts CHANGED
@@ -3,46 +3,23 @@
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
5
5
  // Parambir Singh <https://github.com/parambirs>
6
- // Christian Vaagland Tellnes <https://github.com/tellnes>
7
6
  // Wilco Bakker <https://github.com/WilcoBakker>
8
7
  // Sebastian Silbermann <https://github.com/eps1lon>
9
8
  // Hoàng Văn Khải <https://github.com/KSXGitHub>
10
9
  // Sander Koenders <https://github.com/Archcry>
11
10
  // Jordi Oliveras Rovira <https://github.com/j-oliveras>
12
11
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
13
- /************************************************
14
- * *
15
- * Node.js v7.x API *
16
- * *
17
- ************************************************/
18
- // NOTE: These definitions support NodeJS and TypeScript 3.1.
12
+ // NOTE: These definitions support NodeJS and TypeScript 3.2.
19
13
 
20
14
  // NOTE: TypeScript version-specific augmentations can be found in the following paths:
21
15
  // - ~/base.d.ts - Shared definitions common to all TypeScript versions
22
16
  // - ~/index.d.ts - Definitions specific to TypeScript 2.1
23
- // - ~/ts3.1/index.d.ts - Definitions specific to TypeScript 3.1
17
+ // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
24
18
 
25
- // NOTE: Augmentations for TypeScript 3.1 and later should use individual files for overrides
26
- // within the respective ~/ts3.1 (or later) folder. However, this is disallowed for versions
27
- // prior to TypeScript 3.1, so the older definitions will be found here.
19
+ // Reference required types from the default lib:
20
+ /// <reference lib="es2016" />
28
21
 
29
22
  // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
30
23
  /// <reference path="base.d.ts" />
31
24
 
32
- // TypeScript 2.1-specific augmentations:
33
-
34
- // Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
35
- interface MapConstructor { }
36
- interface WeakMapConstructor { }
37
- interface SetConstructor { }
38
- interface WeakSetConstructor { }
39
- interface IteratorResult<T> {}
40
- interface Iterable<T> {}
41
- interface Iterator<T> {
42
- next(value?: any): IteratorResult<T>;
43
- }
44
- interface IterableIterator<T> { }
45
- interface SymbolConstructor {
46
- readonly iterator: symbol;
47
- }
48
- declare var Symbol: SymbolConstructor;
25
+ // TypeScript 3.2-specific augmentations:
node v7.10/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "7.10.10",
3
+ "version": "7.10.14",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -19,11 +19,6 @@
19
19
  "url": "https://github.com/parambirs",
20
20
  "githubUsername": "parambirs"
21
21
  },
22
- {
23
- "name": "Christian Vaagland Tellnes",
24
- "url": "https://github.com/tellnes",
25
- "githubUsername": "tellnes"
26
- },
27
22
  {
28
23
  "name": "Wilco Bakker",
29
24
  "url": "https://github.com/WilcoBakker",
@@ -52,13 +47,6 @@
52
47
  ],
53
48
  "main": "",
54
49
  "types": "index.d.ts",
55
- "typesVersions": {
56
- ">=3.2.0-0": {
57
- "*": [
58
- "ts3.2/*"
59
- ]
60
- }
61
- },
62
50
  "repository": {
63
51
  "type": "git",
64
52
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -66,6 +54,6 @@
66
54
  },
67
55
  "scripts": {},
68
56
  "dependencies": {},
69
- "typesPublisherContentHash": "30ea5204ef0bed1c9ebb532d89f01bb001cb587bdca0ae79a97b6a2227ea18ae",
70
- "typeScriptVersion": "2.8"
57
+ "typesPublisherContentHash": "82d6d7d6b99bb519356a55b8e785de926d1ef333f23cd0047f443e4af30faa03",
58
+ "typeScriptVersion": "3.2"
71
59
  }
@@ -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="es2016" />
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: