@types/node 13.13.45 → 13.13.49
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 v13.13/LICENSE +0 -0
- node v13.13/README.md +1 -1
- node v13.13/assert.d.ts +0 -0
- node v13.13/async_hooks.d.ts +1 -1
- node v13.13/base.d.ts +0 -0
- node v13.13/buffer.d.ts +0 -0
- node v13.13/child_process.d.ts +0 -0
- node v13.13/cluster.d.ts +0 -0
- node v13.13/console.d.ts +0 -0
- node v13.13/constants.d.ts +0 -0
- node v13.13/crypto.d.ts +0 -0
- node v13.13/dgram.d.ts +0 -0
- node v13.13/dns.d.ts +0 -0
- node v13.13/domain.d.ts +0 -0
- node v13.13/events.d.ts +0 -0
- node v13.13/fs.d.ts +0 -0
- node v13.13/globals.d.ts +42 -1
- node v13.13/globals.global.d.ts +0 -0
- node v13.13/http.d.ts +0 -0
- node v13.13/http2.d.ts +1 -1
- node v13.13/https.d.ts +0 -0
- node v13.13/index.d.ts +0 -0
- node v13.13/inspector.d.ts +0 -0
- node v13.13/module.d.ts +0 -0
- node v13.13/net.d.ts +0 -0
- node v13.13/os.d.ts +0 -0
- node v13.13/package.json +3 -8
- node v13.13/path.d.ts +0 -0
- node v13.13/perf_hooks.d.ts +0 -0
- node v13.13/process.d.ts +0 -0
- node v13.13/punycode.d.ts +0 -0
- node v13.13/querystring.d.ts +0 -0
- node v13.13/readline.d.ts +0 -0
- node v13.13/repl.d.ts +0 -0
- node v13.13/stream.d.ts +0 -0
- node v13.13/string_decoder.d.ts +0 -0
- node v13.13/timers.d.ts +0 -0
- node v13.13/tls.d.ts +0 -0
- node v13.13/trace_events.d.ts +0 -0
- node v13.13/{ts3.4 → ts3.6}/assert.d.ts +0 -0
- node v13.13/ts3.6/base.d.ts +43 -5
- node v13.13/ts3.6/index.d.ts +2 -3
- node v13.13/tty.d.ts +0 -0
- node v13.13/url.d.ts +0 -0
- node v13.13/util.d.ts +0 -0
- node v13.13/v8.d.ts +0 -0
- node v13.13/vm.d.ts +0 -0
- node v13.13/wasi.d.ts +0 -0
- node v13.13/worker_threads.d.ts +0 -0
- node v13.13/zlib.d.ts +0 -0
- node v13.13/ts3.4/base.d.ts +0 -54
- node v13.13/ts3.4/globals.global.d.ts +0 -1
- node v13.13/ts3.4/index.d.ts +0 -8
node v13.13/LICENSE
CHANGED
|
File without changes
|
node v13.13/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/v13.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 14 Apr 2021 20:31:24 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v13.13/assert.d.ts
CHANGED
|
File without changes
|
node v13.13/async_hooks.d.ts
CHANGED
node v13.13/base.d.ts
CHANGED
|
File without changes
|
node v13.13/buffer.d.ts
CHANGED
|
File without changes
|
node v13.13/child_process.d.ts
CHANGED
|
File without changes
|
node v13.13/cluster.d.ts
CHANGED
|
File without changes
|
node v13.13/console.d.ts
CHANGED
|
File without changes
|
node v13.13/constants.d.ts
CHANGED
|
File without changes
|
node v13.13/crypto.d.ts
CHANGED
|
File without changes
|
node v13.13/dgram.d.ts
CHANGED
|
File without changes
|
node v13.13/dns.d.ts
CHANGED
|
File without changes
|
node v13.13/domain.d.ts
CHANGED
|
File without changes
|
node v13.13/events.d.ts
CHANGED
|
File without changes
|
node v13.13/fs.d.ts
CHANGED
|
File without changes
|
node v13.13/globals.d.ts
CHANGED
|
@@ -783,6 +783,32 @@ declare namespace NodeJS {
|
|
|
783
783
|
voluntaryContextSwitches: number;
|
|
784
784
|
}
|
|
785
785
|
|
|
786
|
+
interface EmitWarningOptions {
|
|
787
|
+
/**
|
|
788
|
+
* When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
|
|
789
|
+
*
|
|
790
|
+
* @default 'Warning'
|
|
791
|
+
*/
|
|
792
|
+
type?: string;
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* A unique identifier for the warning instance being emitted.
|
|
796
|
+
*/
|
|
797
|
+
code?: string;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
|
|
801
|
+
*
|
|
802
|
+
* @default process.emitWarning
|
|
803
|
+
*/
|
|
804
|
+
ctor?: Function;
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Additional text to include with the error.
|
|
808
|
+
*/
|
|
809
|
+
detail?: string;
|
|
810
|
+
}
|
|
811
|
+
|
|
786
812
|
interface Process extends EventEmitter {
|
|
787
813
|
/**
|
|
788
814
|
* Can also be a tty.WriteStream, not typed due to limitation.s
|
|
@@ -802,7 +828,22 @@ declare namespace NodeJS {
|
|
|
802
828
|
chdir(directory: string): void;
|
|
803
829
|
cwd(): string;
|
|
804
830
|
debugPort: number;
|
|
805
|
-
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
|
|
834
|
+
*
|
|
835
|
+
* These can be listened for by adding a handler to the `'warning'` event.
|
|
836
|
+
*
|
|
837
|
+
* @param warning The warning to emit.
|
|
838
|
+
* @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
|
|
839
|
+
* @param code A unique identifier for the warning instance being emitted.
|
|
840
|
+
* @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
|
|
841
|
+
*/
|
|
842
|
+
emitWarning(warning: string | Error, ctor?: Function): void;
|
|
843
|
+
emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
|
|
844
|
+
emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
|
|
845
|
+
emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
|
|
846
|
+
|
|
806
847
|
env: ProcessEnv;
|
|
807
848
|
exit(code?: number): never;
|
|
808
849
|
exitCode?: number;
|
node v13.13/globals.global.d.ts
CHANGED
|
File without changes
|
node v13.13/http.d.ts
CHANGED
|
File without changes
|
node v13.13/http2.d.ts
CHANGED
|
@@ -638,7 +638,7 @@ declare module "http2" {
|
|
|
638
638
|
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
|
-
export class Http2ServerResponse extends stream.
|
|
641
|
+
export class Http2ServerResponse extends stream.Writable {
|
|
642
642
|
constructor(stream: ServerHttp2Stream);
|
|
643
643
|
|
|
644
644
|
readonly connection: net.Socket | tls.TLSSocket;
|
node v13.13/https.d.ts
CHANGED
|
File without changes
|
node v13.13/index.d.ts
CHANGED
|
File without changes
|
node v13.13/inspector.d.ts
CHANGED
|
File without changes
|
node v13.13/module.d.ts
CHANGED
|
File without changes
|
node v13.13/net.d.ts
CHANGED
|
File without changes
|
node v13.13/os.d.ts
CHANGED
|
File without changes
|
node v13.13/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "13.13.
|
|
3
|
+
"version": "13.13.49",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -208,11 +208,6 @@
|
|
|
208
208
|
"main": "",
|
|
209
209
|
"types": "index.d.ts",
|
|
210
210
|
"typesVersions": {
|
|
211
|
-
"<=3.4": {
|
|
212
|
-
"*": [
|
|
213
|
-
"ts3.4/*"
|
|
214
|
-
]
|
|
215
|
-
},
|
|
216
211
|
"<=3.6": {
|
|
217
212
|
"*": [
|
|
218
213
|
"ts3.6/*"
|
|
@@ -226,6 +221,6 @@
|
|
|
226
221
|
},
|
|
227
222
|
"scripts": {},
|
|
228
223
|
"dependencies": {},
|
|
229
|
-
"typesPublisherContentHash": "
|
|
230
|
-
"typeScriptVersion": "3.
|
|
224
|
+
"typesPublisherContentHash": "5921cabce06e12c87c087dc5b59209d243f89f6c09b00ade39bf68abf6d22ebb",
|
|
225
|
+
"typeScriptVersion": "3.5"
|
|
231
226
|
}
|
node v13.13/path.d.ts
CHANGED
|
File without changes
|
node v13.13/perf_hooks.d.ts
CHANGED
|
File without changes
|
node v13.13/process.d.ts
CHANGED
|
File without changes
|
node v13.13/punycode.d.ts
CHANGED
|
File without changes
|
node v13.13/querystring.d.ts
CHANGED
|
File without changes
|
node v13.13/readline.d.ts
CHANGED
|
File without changes
|
node v13.13/repl.d.ts
CHANGED
|
File without changes
|
node v13.13/stream.d.ts
CHANGED
|
File without changes
|
node v13.13/string_decoder.d.ts
CHANGED
|
File without changes
|
node v13.13/timers.d.ts
CHANGED
|
File without changes
|
node v13.13/tls.d.ts
CHANGED
|
File without changes
|
node v13.13/trace_events.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
node v13.13/ts3.6/base.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.
|
|
1
|
+
// NOTE: These definitions support NodeJS and TypeScript 3.6 and earlier.
|
|
2
2
|
|
|
3
3
|
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
4
4
|
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
5
|
-
// - ~/index.d.ts - Definitions specific to TypeScript
|
|
6
|
-
// - ~/ts3.5/base.d.ts - Definitions specific to TypeScript 3.
|
|
7
|
-
// - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.
|
|
5
|
+
// - ~/index.d.ts - Definitions specific to TypeScript 3.7+
|
|
6
|
+
// - ~/ts3.5/base.d.ts - Definitions specific to TypeScript 3.6 and earlier
|
|
7
|
+
// - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.6 and earlier with assert pulled in
|
|
8
8
|
|
|
9
9
|
// Reference required types from the default lib:
|
|
10
10
|
/// <reference lib="es2018" />
|
|
@@ -13,7 +13,45 @@
|
|
|
13
13
|
/// <reference lib="esnext.bigint" />
|
|
14
14
|
|
|
15
15
|
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
16
|
-
/// <reference path="../
|
|
16
|
+
/// <reference path="../globals.d.ts" />
|
|
17
|
+
/// <reference path="../async_hooks.d.ts" />
|
|
18
|
+
/// <reference path="../buffer.d.ts" />
|
|
19
|
+
/// <reference path="../child_process.d.ts" />
|
|
20
|
+
/// <reference path="../cluster.d.ts" />
|
|
21
|
+
/// <reference path="../console.d.ts" />
|
|
22
|
+
/// <reference path="../constants.d.ts" />
|
|
23
|
+
/// <reference path="../crypto.d.ts" />
|
|
24
|
+
/// <reference path="../dgram.d.ts" />
|
|
25
|
+
/// <reference path="../dns.d.ts" />
|
|
26
|
+
/// <reference path="../domain.d.ts" />
|
|
27
|
+
/// <reference path="../events.d.ts" />
|
|
28
|
+
/// <reference path="../fs.d.ts" />
|
|
29
|
+
/// <reference path="../http.d.ts" />
|
|
30
|
+
/// <reference path="../http2.d.ts" />
|
|
31
|
+
/// <reference path="../https.d.ts" />
|
|
32
|
+
/// <reference path="../inspector.d.ts" />
|
|
33
|
+
/// <reference path="../module.d.ts" />
|
|
34
|
+
/// <reference path="../net.d.ts" />
|
|
35
|
+
/// <reference path="../os.d.ts" />
|
|
36
|
+
/// <reference path="../path.d.ts" />
|
|
37
|
+
/// <reference path="../perf_hooks.d.ts" />
|
|
38
|
+
/// <reference path="../process.d.ts" />
|
|
39
|
+
/// <reference path="../punycode.d.ts" />
|
|
40
|
+
/// <reference path="../querystring.d.ts" />
|
|
41
|
+
/// <reference path="../readline.d.ts" />
|
|
42
|
+
/// <reference path="../repl.d.ts" />
|
|
43
|
+
/// <reference path="../stream.d.ts" />
|
|
44
|
+
/// <reference path="../string_decoder.d.ts" />
|
|
45
|
+
/// <reference path="../timers.d.ts" />
|
|
46
|
+
/// <reference path="../tls.d.ts" />
|
|
47
|
+
/// <reference path="../trace_events.d.ts" />
|
|
48
|
+
/// <reference path="../tty.d.ts" />
|
|
49
|
+
/// <reference path="../url.d.ts" />
|
|
50
|
+
/// <reference path="../util.d.ts" />
|
|
51
|
+
/// <reference path="../v8.d.ts" />
|
|
52
|
+
/// <reference path="../vm.d.ts" />
|
|
53
|
+
/// <reference path="../worker_threads.d.ts" />
|
|
54
|
+
/// <reference path="../zlib.d.ts" />
|
|
17
55
|
|
|
18
56
|
// TypeScript 3.4-specific augmentations:
|
|
19
57
|
/// <reference path="../globals.global.d.ts" />
|
node v13.13/ts3.6/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// NOTE: These definitions support NodeJS and TypeScript 3.5.
|
|
2
|
-
// This is
|
|
2
|
+
// This is required to enable typing assert in ts3.7 without causing errors
|
|
3
3
|
// Typically type modifiations should be made in base.d.ts instead of here
|
|
4
4
|
|
|
5
5
|
/// <reference path="base.d.ts" />
|
|
6
|
-
|
|
7
|
-
/// <reference path="../ts3.4/assert.d.ts" />
|
|
6
|
+
/// <reference path="assert.d.ts" />
|
node v13.13/tty.d.ts
CHANGED
|
File without changes
|
node v13.13/url.d.ts
CHANGED
|
File without changes
|
node v13.13/util.d.ts
CHANGED
|
File without changes
|
node v13.13/v8.d.ts
CHANGED
|
File without changes
|
node v13.13/vm.d.ts
CHANGED
|
File without changes
|
node v13.13/wasi.d.ts
CHANGED
|
File without changes
|
node v13.13/worker_threads.d.ts
CHANGED
|
File without changes
|
node v13.13/zlib.d.ts
CHANGED
|
File without changes
|
node v13.13/ts3.4/base.d.ts
DELETED
|
@@ -1,54 +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/base.d.ts - Definitions specific to TypeScript 3.2
|
|
7
|
-
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 with global and assert pulled in
|
|
8
|
-
|
|
9
|
-
// Reference required types from the default lib:
|
|
10
|
-
/// <reference lib="es2018" />
|
|
11
|
-
/// <reference lib="esnext.asynciterable" />
|
|
12
|
-
/// <reference lib="esnext.intl" />
|
|
13
|
-
/// <reference lib="esnext.bigint" />
|
|
14
|
-
|
|
15
|
-
// base definitions for all NodeJS modules that are not specific to any version of TypeScript
|
|
16
|
-
/// <reference path="../globals.d.ts" />
|
|
17
|
-
/// <reference path="../async_hooks.d.ts" />
|
|
18
|
-
/// <reference path="../buffer.d.ts" />
|
|
19
|
-
/// <reference path="../child_process.d.ts" />
|
|
20
|
-
/// <reference path="../cluster.d.ts" />
|
|
21
|
-
/// <reference path="../console.d.ts" />
|
|
22
|
-
/// <reference path="../constants.d.ts" />
|
|
23
|
-
/// <reference path="../crypto.d.ts" />
|
|
24
|
-
/// <reference path="../dgram.d.ts" />
|
|
25
|
-
/// <reference path="../dns.d.ts" />
|
|
26
|
-
/// <reference path="../domain.d.ts" />
|
|
27
|
-
/// <reference path="../events.d.ts" />
|
|
28
|
-
/// <reference path="../fs.d.ts" />
|
|
29
|
-
/// <reference path="../http.d.ts" />
|
|
30
|
-
/// <reference path="../http2.d.ts" />
|
|
31
|
-
/// <reference path="../https.d.ts" />
|
|
32
|
-
/// <reference path="../inspector.d.ts" />
|
|
33
|
-
/// <reference path="../module.d.ts" />
|
|
34
|
-
/// <reference path="../net.d.ts" />
|
|
35
|
-
/// <reference path="../os.d.ts" />
|
|
36
|
-
/// <reference path="../path.d.ts" />
|
|
37
|
-
/// <reference path="../perf_hooks.d.ts" />
|
|
38
|
-
/// <reference path="../process.d.ts" />
|
|
39
|
-
/// <reference path="../punycode.d.ts" />
|
|
40
|
-
/// <reference path="../querystring.d.ts" />
|
|
41
|
-
/// <reference path="../readline.d.ts" />
|
|
42
|
-
/// <reference path="../repl.d.ts" />
|
|
43
|
-
/// <reference path="../stream.d.ts" />
|
|
44
|
-
/// <reference path="../string_decoder.d.ts" />
|
|
45
|
-
/// <reference path="../timers.d.ts" />
|
|
46
|
-
/// <reference path="../tls.d.ts" />
|
|
47
|
-
/// <reference path="../trace_events.d.ts" />
|
|
48
|
-
/// <reference path="../tty.d.ts" />
|
|
49
|
-
/// <reference path="../url.d.ts" />
|
|
50
|
-
/// <reference path="../util.d.ts" />
|
|
51
|
-
/// <reference path="../v8.d.ts" />
|
|
52
|
-
/// <reference path="../vm.d.ts" />
|
|
53
|
-
/// <reference path="../worker_threads.d.ts" />
|
|
54
|
-
/// <reference path="../zlib.d.ts" />
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare var global: NodeJS.Global;
|
node v13.13/ts3.4/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.2.
|
|
2
|
-
// This is requried to enable globalThis support for global in ts3.5 without causing errors
|
|
3
|
-
// This is requried to enable typing assert in ts3.7 without causing errors
|
|
4
|
-
// Typically type modifiations should be made in base.d.ts instead of here
|
|
5
|
-
|
|
6
|
-
/// <reference path="base.d.ts" />
|
|
7
|
-
/// <reference path="assert.d.ts" />
|
|
8
|
-
/// <reference path="globals.global.d.ts" />
|