@types/node 14.18.8 → 15.0.2
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 v14.18 → node}/LICENSE +0 -0
- node/README.md +16 -0
- node/assert/strict.d.ts +4 -0
- node v14.18/assert.d.ts → node/assert.d.ts +3 -7
- node v14.18/async_hooks.d.ts → node/async_hooks.d.ts +4 -7
- node/base.d.ts +19 -0
- node/buffer.d.ts +22 -0
- node v14.18/child_process.d.ts → node/child_process.d.ts +63 -67
- node v14.18/cluster.d.ts → node/cluster.d.ts +10 -13
- node v14.18/console.d.ts → node/console.d.ts +13 -22
- node v14.18/constants.d.ts → node/constants.d.ts +0 -5
- node v14.18/crypto.d.ts → node/crypto.d.ts +134 -53
- node v14.18/dgram.d.ts → node/dgram.d.ts +17 -20
- node/dns/promises.d.ts +97 -0
- node/dns.d.ts +322 -0
- node v14.18/domain.d.ts → node/domain.d.ts +0 -3
- node v14.18/events.d.ts → node/events.d.ts +8 -8
- node v14.18/fs/promises.d.ts → node/fs/promises.d.ts +18 -29
- node v14.18/fs.d.ts → node/fs.d.ts +77 -93
- node v14.18/globals.d.ts → node/globals.d.ts +60 -24
- {node v14.18 → node}/globals.global.d.ts +0 -0
- node v14.18/http.d.ts → node/http.d.ts +108 -176
- node v14.18/http2.d.ts → node/http2.d.ts +74 -71
- node/https.d.ts +36 -0
- node v14.18/index.d.ts → node/index.d.ts +15 -55
- node v14.18/inspector.d.ts → node/inspector.d.ts +151 -161
- node v14.18/module.d.ts → node/module.d.ts +0 -4
- node v14.18/net.d.ts → node/net.d.ts +70 -42
- node v14.18/os.d.ts → node/os.d.ts +0 -3
- node v14.18/package.json → node/package.json +25 -19
- node v14.18/path.d.ts → node/path.d.ts +5 -9
- node v14.18/perf_hooks.d.ts → node/perf_hooks.d.ts +5 -8
- node v14.18/process.d.ts → node/process.d.ts +53 -17
- node v14.18/punycode.d.ts → node/punycode.d.ts +0 -3
- node v14.18/querystring.d.ts → node/querystring.d.ts +3 -6
- node v14.18/readline.d.ts → node/readline.d.ts +14 -18
- node v14.18/repl.d.ts → node/repl.d.ts +17 -20
- node/stream/promises.d.ts +67 -0
- node v14.18/stream.d.ts → node/stream.d.ts +164 -60
- node v14.18/string_decoder.d.ts → node/string_decoder.d.ts +0 -3
- node/timers/promises.d.ts +13 -0
- node v14.18/timers.d.ts → node/timers.d.ts +16 -5
- node v14.18/tls.d.ts → node/tls.d.ts +51 -56
- node v14.18/trace_events.d.ts → node/trace_events.d.ts +0 -3
- node/ts3.6/assert.d.ts +98 -0
- node/ts3.6/base.d.ts +66 -0
- node/ts3.6/index.d.ts +7 -0
- node v14.18/tty.d.ts → node/tty.d.ts +0 -3
- node v14.18/url.d.ts → node/url.d.ts +16 -19
- node v14.18/util.d.ts → node/util.d.ts +3 -12
- node v14.18/v8.d.ts → node/v8.d.ts +0 -3
- node v14.18/vm.d.ts → node/vm.d.ts +25 -28
- node v14.18/wasi.d.ts → node/wasi.d.ts +7 -10
- node v14.18/worker_threads.d.ts → node/worker_threads.d.ts +18 -18
- node v14.18/zlib.d.ts → node/zlib.d.ts +16 -19
- node v14.18/README.md +0 -16
- node v14.18/buffer.d.ts +0 -89
- node v14.18/dns.d.ts +0 -387
- node v14.18/https.d.ts +0 -142
|
@@ -15,37 +15,37 @@ declare module 'http2' {
|
|
|
15
15
|
export { OutgoingHttpHeaders } from 'http';
|
|
16
16
|
|
|
17
17
|
export interface IncomingHttpStatusHeader {
|
|
18
|
-
":status"?: number
|
|
18
|
+
":status"?: number;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders {
|
|
22
|
-
":path"?: string
|
|
23
|
-
":method"?: string
|
|
24
|
-
":authority"?: string
|
|
25
|
-
":scheme"?: string
|
|
22
|
+
":path"?: string;
|
|
23
|
+
":method"?: string;
|
|
24
|
+
":authority"?: string;
|
|
25
|
+
":scheme"?: string;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// Http2Stream
|
|
29
29
|
|
|
30
30
|
export interface StreamPriorityOptions {
|
|
31
|
-
exclusive?: boolean
|
|
32
|
-
parent?: number
|
|
33
|
-
weight?: number
|
|
34
|
-
silent?: boolean
|
|
31
|
+
exclusive?: boolean;
|
|
32
|
+
parent?: number;
|
|
33
|
+
weight?: number;
|
|
34
|
+
silent?: boolean;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export interface StreamState {
|
|
38
|
-
localWindowSize?: number
|
|
39
|
-
state?: number
|
|
40
|
-
localClose?: number
|
|
41
|
-
remoteClose?: number
|
|
42
|
-
sumDependencyWeight?: number
|
|
43
|
-
weight?: number
|
|
38
|
+
localWindowSize?: number;
|
|
39
|
+
state?: number;
|
|
40
|
+
localClose?: number;
|
|
41
|
+
remoteClose?: number;
|
|
42
|
+
sumDependencyWeight?: number;
|
|
43
|
+
weight?: number;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export interface ServerStreamResponseOptions {
|
|
47
|
-
endStream?: boolean
|
|
48
|
-
waitForTrailers?: boolean
|
|
47
|
+
endStream?: boolean;
|
|
48
|
+
waitForTrailers?: boolean;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export interface StatOptions {
|
|
@@ -55,9 +55,9 @@ declare module 'http2' {
|
|
|
55
55
|
|
|
56
56
|
export interface ServerStreamFileResponseOptions {
|
|
57
57
|
statCheck?(stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions): void | boolean;
|
|
58
|
-
waitForTrailers?: boolean
|
|
59
|
-
offset?: number
|
|
60
|
-
length?: number
|
|
58
|
+
waitForTrailers?: boolean;
|
|
59
|
+
offset?: number;
|
|
60
|
+
length?: number;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions {
|
|
@@ -74,12 +74,12 @@ declare module 'http2' {
|
|
|
74
74
|
* indicating that no additional data should be received and the readable side of the Http2Stream will be closed.
|
|
75
75
|
*/
|
|
76
76
|
readonly endAfterHeaders: boolean;
|
|
77
|
-
readonly id?: number
|
|
77
|
+
readonly id?: number;
|
|
78
78
|
readonly pending: boolean;
|
|
79
79
|
readonly rstCode: number;
|
|
80
80
|
readonly sentHeaders: OutgoingHttpHeaders;
|
|
81
|
-
readonly sentInfoHeaders?: OutgoingHttpHeaders[]
|
|
82
|
-
readonly sentTrailers?: OutgoingHttpHeaders
|
|
81
|
+
readonly sentInfoHeaders?: OutgoingHttpHeaders[];
|
|
82
|
+
readonly sentTrailers?: OutgoingHttpHeaders;
|
|
83
83
|
readonly session: Http2Session;
|
|
84
84
|
readonly state: StreamState;
|
|
85
85
|
|
|
@@ -237,43 +237,43 @@ declare module 'http2' {
|
|
|
237
237
|
// Http2Session
|
|
238
238
|
|
|
239
239
|
export interface Settings {
|
|
240
|
-
headerTableSize?: number
|
|
241
|
-
enablePush?: boolean
|
|
242
|
-
initialWindowSize?: number
|
|
243
|
-
maxFrameSize?: number
|
|
244
|
-
maxConcurrentStreams?: number
|
|
245
|
-
maxHeaderListSize?: number
|
|
246
|
-
enableConnectProtocol?: boolean
|
|
240
|
+
headerTableSize?: number;
|
|
241
|
+
enablePush?: boolean;
|
|
242
|
+
initialWindowSize?: number;
|
|
243
|
+
maxFrameSize?: number;
|
|
244
|
+
maxConcurrentStreams?: number;
|
|
245
|
+
maxHeaderListSize?: number;
|
|
246
|
+
enableConnectProtocol?: boolean;
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
export interface ClientSessionRequestOptions {
|
|
250
|
-
endStream?: boolean
|
|
251
|
-
exclusive?: boolean
|
|
252
|
-
parent?: number
|
|
253
|
-
weight?: number
|
|
254
|
-
waitForTrailers?: boolean
|
|
250
|
+
endStream?: boolean;
|
|
251
|
+
exclusive?: boolean;
|
|
252
|
+
parent?: number;
|
|
253
|
+
weight?: number;
|
|
254
|
+
waitForTrailers?: boolean;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
export interface SessionState {
|
|
258
|
-
effectiveLocalWindowSize?: number
|
|
259
|
-
effectiveRecvDataLength?: number
|
|
260
|
-
nextStreamID?: number
|
|
261
|
-
localWindowSize?: number
|
|
262
|
-
lastProcStreamID?: number
|
|
263
|
-
remoteWindowSize?: number
|
|
264
|
-
outboundQueueSize?: number
|
|
265
|
-
deflateDynamicTableSize?: number
|
|
266
|
-
inflateDynamicTableSize?: number
|
|
258
|
+
effectiveLocalWindowSize?: number;
|
|
259
|
+
effectiveRecvDataLength?: number;
|
|
260
|
+
nextStreamID?: number;
|
|
261
|
+
localWindowSize?: number;
|
|
262
|
+
lastProcStreamID?: number;
|
|
263
|
+
remoteWindowSize?: number;
|
|
264
|
+
outboundQueueSize?: number;
|
|
265
|
+
deflateDynamicTableSize?: number;
|
|
266
|
+
inflateDynamicTableSize?: number;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
export interface Http2Session extends EventEmitter {
|
|
270
|
-
readonly alpnProtocol?: string
|
|
270
|
+
readonly alpnProtocol?: string;
|
|
271
271
|
readonly closed: boolean;
|
|
272
272
|
readonly connecting: boolean;
|
|
273
273
|
readonly destroyed: boolean;
|
|
274
|
-
readonly encrypted?: boolean
|
|
274
|
+
readonly encrypted?: boolean;
|
|
275
275
|
readonly localSettings: Settings;
|
|
276
|
-
readonly originSet?: string[]
|
|
276
|
+
readonly originSet?: string[];
|
|
277
277
|
readonly pendingSettingsAck: boolean;
|
|
278
278
|
readonly remoteSettings: Settings;
|
|
279
279
|
readonly socket: net.Socket | tls.TLSSocket;
|
|
@@ -430,30 +430,30 @@ declare module 'http2' {
|
|
|
430
430
|
// Http2Server
|
|
431
431
|
|
|
432
432
|
export interface SessionOptions {
|
|
433
|
-
maxDeflateDynamicTableSize?: number
|
|
434
|
-
maxSessionMemory?: number
|
|
435
|
-
maxHeaderListPairs?: number
|
|
436
|
-
maxOutstandingPings?: number
|
|
437
|
-
maxSendHeaderBlockLength?: number
|
|
438
|
-
paddingStrategy?: number
|
|
439
|
-
peerMaxConcurrentStreams?: number
|
|
440
|
-
settings?: Settings
|
|
433
|
+
maxDeflateDynamicTableSize?: number;
|
|
434
|
+
maxSessionMemory?: number;
|
|
435
|
+
maxHeaderListPairs?: number;
|
|
436
|
+
maxOutstandingPings?: number;
|
|
437
|
+
maxSendHeaderBlockLength?: number;
|
|
438
|
+
paddingStrategy?: number;
|
|
439
|
+
peerMaxConcurrentStreams?: number;
|
|
440
|
+
settings?: Settings;
|
|
441
441
|
|
|
442
442
|
selectPadding?(frameLen: number, maxFrameLen: number): number;
|
|
443
443
|
createConnection?(authority: url.URL, option: SessionOptions): stream.Duplex;
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
export interface ClientSessionOptions extends SessionOptions {
|
|
447
|
-
maxReservedRemoteStreams?: number
|
|
448
|
-
createConnection?: (
|
|
449
|
-
protocol?: 'http:' | 'https:'
|
|
447
|
+
maxReservedRemoteStreams?: number;
|
|
448
|
+
createConnection?: (authority: url.URL, option: SessionOptions) => stream.Duplex;
|
|
449
|
+
protocol?: 'http:' | 'https:';
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
export interface ServerSessionOptions extends SessionOptions {
|
|
453
|
-
Http1IncomingMessage?: typeof IncomingMessage
|
|
454
|
-
Http1ServerResponse?: typeof ServerResponse
|
|
455
|
-
Http2ServerRequest?: typeof Http2ServerRequest
|
|
456
|
-
Http2ServerResponse?: typeof Http2ServerResponse
|
|
453
|
+
Http1IncomingMessage?: typeof IncomingMessage;
|
|
454
|
+
Http1ServerResponse?: typeof ServerResponse;
|
|
455
|
+
Http2ServerRequest?: typeof Http2ServerRequest;
|
|
456
|
+
Http2ServerResponse?: typeof Http2ServerResponse;
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions { }
|
|
@@ -462,8 +462,8 @@ declare module 'http2' {
|
|
|
462
462
|
export interface ServerOptions extends ServerSessionOptions { }
|
|
463
463
|
|
|
464
464
|
export interface SecureServerOptions extends SecureServerSessionOptions {
|
|
465
|
-
allowHTTP1?: boolean
|
|
466
|
-
origins?: string[]
|
|
465
|
+
allowHTTP1?: boolean;
|
|
466
|
+
origins?: string[];
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
export interface Http2Server extends net.Server {
|
|
@@ -594,7 +594,7 @@ declare module 'http2' {
|
|
|
594
594
|
readonly socket: net.Socket | tls.TLSSocket;
|
|
595
595
|
readonly stream: ServerHttp2Stream;
|
|
596
596
|
readonly trailers: IncomingHttpHeaders;
|
|
597
|
-
url: string;
|
|
597
|
+
readonly url: string;
|
|
598
598
|
|
|
599
599
|
setTimeout(msecs: number, callback?: () => void): void;
|
|
600
600
|
read(size?: number): Buffer | string | null;
|
|
@@ -660,9 +660,9 @@ declare module 'http2' {
|
|
|
660
660
|
statusCode: number;
|
|
661
661
|
statusMessage: '';
|
|
662
662
|
addTrailers(trailers: OutgoingHttpHeaders): void;
|
|
663
|
-
end(callback?: () => void):
|
|
664
|
-
end(data: string | Uint8Array, callback?: () => void):
|
|
665
|
-
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void):
|
|
663
|
+
end(callback?: () => void): void;
|
|
664
|
+
end(data: string | Uint8Array, callback?: () => void): void;
|
|
665
|
+
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): void;
|
|
666
666
|
getHeader(name: string): string;
|
|
667
667
|
getHeaderNames(): string[];
|
|
668
668
|
getHeaders(): OutgoingHttpHeaders;
|
|
@@ -939,6 +939,12 @@ declare module 'http2' {
|
|
|
939
939
|
const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: number;
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
+
/**
|
|
943
|
+
* This symbol can be set as a property on the HTTP/2 headers object with
|
|
944
|
+
* an array value in order to provide a list of headers considered sensitive.
|
|
945
|
+
*/
|
|
946
|
+
export const sensitiveHeaders: symbol;
|
|
947
|
+
|
|
942
948
|
export function getDefaultSettings(): Settings;
|
|
943
949
|
export function getPackedSettings(settings: Settings): Buffer;
|
|
944
950
|
export function getUnpackedSettings(buf: Uint8Array): Settings;
|
|
@@ -956,6 +962,3 @@ declare module 'http2' {
|
|
|
956
962
|
listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void
|
|
957
963
|
): ClientHttp2Session;
|
|
958
964
|
}
|
|
959
|
-
declare module 'node:http2' {
|
|
960
|
-
export * from 'http2';
|
|
961
|
-
}
|
node/https.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare module 'https' {
|
|
2
|
+
import * as tls from 'tls';
|
|
3
|
+
import * as http from 'http';
|
|
4
|
+
import { URL } from 'url';
|
|
5
|
+
|
|
6
|
+
type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
|
|
7
|
+
|
|
8
|
+
type RequestOptions = http.RequestOptions & tls.SecureContextOptions & {
|
|
9
|
+
rejectUnauthorized?: boolean; // Defaults to true
|
|
10
|
+
servername?: string; // SNI TLS Extension
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
|
14
|
+
rejectUnauthorized?: boolean;
|
|
15
|
+
maxCachedSessions?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class Agent extends http.Agent {
|
|
19
|
+
constructor(options?: AgentOptions);
|
|
20
|
+
options: AgentOptions;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface Server extends http.HttpBase {}
|
|
24
|
+
class Server extends tls.Server {
|
|
25
|
+
constructor(requestListener?: http.RequestListener);
|
|
26
|
+
constructor(options: ServerOptions, requestListener?: http.RequestListener);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function createServer(requestListener?: http.RequestListener): Server;
|
|
30
|
+
function createServer(options: ServerOptions, requestListener?: http.RequestListener): Server;
|
|
31
|
+
function request(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
|
|
32
|
+
function request(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
|
|
33
|
+
function get(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
|
|
34
|
+
function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
|
|
35
|
+
let globalAgent: Agent;
|
|
36
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Type definitions for non-npm package Node.js
|
|
2
|
-
// Project:
|
|
1
|
+
// Type definitions for non-npm package Node.js 15.0
|
|
2
|
+
// Project: http://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
5
5
|
// Alberto Schiabel <https://github.com/jkomyno>
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
// Nikita Galkin <https://github.com/galkin>
|
|
23
23
|
// Parambir Singh <https://github.com/parambirs>
|
|
24
24
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
25
|
-
// Seth Westphal <https://github.com/westy92>
|
|
26
25
|
// Simon Schick <https://github.com/SimonSchick>
|
|
27
26
|
// Thomas den Hollander <https://github.com/ThomasdenH>
|
|
28
27
|
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
@@ -32,67 +31,28 @@
|
|
|
32
31
|
// Thanik Bhongbhibhat <https://github.com/bhongy>
|
|
33
32
|
// Marcin Kopacz <https://github.com/chyzwar>
|
|
34
33
|
// Trivikram Kamat <https://github.com/trivikr>
|
|
34
|
+
// Minh Son Nguyen <https://github.com/nguymin4>
|
|
35
35
|
// Junxiao Shi <https://github.com/yoursunny>
|
|
36
36
|
// Ilia Baryshnikov <https://github.com/qwelias>
|
|
37
37
|
// ExE Boss <https://github.com/ExE-Boss>
|
|
38
|
+
// Surasak Chaisurin <https://github.com/Ryan-Willpower>
|
|
38
39
|
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
39
40
|
// Anna Henningsen <https://github.com/addaleax>
|
|
41
|
+
// Jason Kwok <https://github.com/JasonHK>
|
|
40
42
|
// Victor Perin <https://github.com/victorperin>
|
|
41
43
|
// Yongsheng Zhang <https://github.com/ZYSzys>
|
|
42
|
-
// Bond <https://github.com/bondz>
|
|
43
|
-
// Linus Unnebäck <https://github.com/LinusU>
|
|
44
44
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
45
45
|
|
|
46
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.7
|
|
46
|
+
// NOTE: These definitions support NodeJS and TypeScript 3.7.
|
|
47
|
+
// Typically type modifications should be made in base.d.ts instead of here
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
/// <reference lib="es2018" />
|
|
50
|
-
/// <reference lib="esnext.asynciterable" />
|
|
51
|
-
/// <reference lib="esnext.intl" />
|
|
52
|
-
/// <reference lib="esnext.bigint" />
|
|
49
|
+
/// <reference path="base.d.ts" />
|
|
53
50
|
|
|
54
|
-
//
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/// <reference path="buffer.d.ts" />
|
|
59
|
-
/// <reference path="child_process.d.ts" />
|
|
60
|
-
/// <reference path="cluster.d.ts" />
|
|
61
|
-
/// <reference path="console.d.ts" />
|
|
62
|
-
/// <reference path="constants.d.ts" />
|
|
63
|
-
/// <reference path="crypto.d.ts" />
|
|
64
|
-
/// <reference path="dgram.d.ts" />
|
|
65
|
-
/// <reference path="dns.d.ts" />
|
|
66
|
-
/// <reference path="domain.d.ts" />
|
|
67
|
-
/// <reference path="events.d.ts" />
|
|
68
|
-
/// <reference path="fs.d.ts" />
|
|
69
|
-
/// <reference path="fs/promises.d.ts" />
|
|
70
|
-
/// <reference path="http.d.ts" />
|
|
71
|
-
/// <reference path="http2.d.ts" />
|
|
72
|
-
/// <reference path="https.d.ts" />
|
|
73
|
-
/// <reference path="inspector.d.ts" />
|
|
74
|
-
/// <reference path="module.d.ts" />
|
|
75
|
-
/// <reference path="net.d.ts" />
|
|
76
|
-
/// <reference path="os.d.ts" />
|
|
77
|
-
/// <reference path="path.d.ts" />
|
|
78
|
-
/// <reference path="perf_hooks.d.ts" />
|
|
79
|
-
/// <reference path="process.d.ts" />
|
|
80
|
-
/// <reference path="punycode.d.ts" />
|
|
81
|
-
/// <reference path="querystring.d.ts" />
|
|
82
|
-
/// <reference path="readline.d.ts" />
|
|
83
|
-
/// <reference path="repl.d.ts" />
|
|
84
|
-
/// <reference path="stream.d.ts" />
|
|
85
|
-
/// <reference path="string_decoder.d.ts" />
|
|
86
|
-
/// <reference path="timers.d.ts" />
|
|
87
|
-
/// <reference path="tls.d.ts" />
|
|
88
|
-
/// <reference path="trace_events.d.ts" />
|
|
89
|
-
/// <reference path="tty.d.ts" />
|
|
90
|
-
/// <reference path="url.d.ts" />
|
|
91
|
-
/// <reference path="util.d.ts" />
|
|
92
|
-
/// <reference path="v8.d.ts" />
|
|
93
|
-
/// <reference path="vm.d.ts" />
|
|
94
|
-
/// <reference path="wasi.d.ts" />
|
|
95
|
-
/// <reference path="worker_threads.d.ts" />
|
|
96
|
-
/// <reference path="zlib.d.ts" />
|
|
51
|
+
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
52
|
+
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
53
|
+
// - ~/index.d.ts - Definitions specific to TypeScript 2.8
|
|
54
|
+
// - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.5
|
|
97
55
|
|
|
98
|
-
|
|
56
|
+
// NOTE: Augmentations for TypeScript 3.5 and later should use individual files for overrides
|
|
57
|
+
// within the respective ~/ts3.5 (or later) folder. However, this is disallowed for versions
|
|
58
|
+
// prior to TypeScript 3.5, so the older definitions will be found here.
|