@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.
Files changed (53) hide show
  1. node v13.13/LICENSE +0 -0
  2. node v13.13/README.md +1 -1
  3. node v13.13/assert.d.ts +0 -0
  4. node v13.13/async_hooks.d.ts +1 -1
  5. node v13.13/base.d.ts +0 -0
  6. node v13.13/buffer.d.ts +0 -0
  7. node v13.13/child_process.d.ts +0 -0
  8. node v13.13/cluster.d.ts +0 -0
  9. node v13.13/console.d.ts +0 -0
  10. node v13.13/constants.d.ts +0 -0
  11. node v13.13/crypto.d.ts +0 -0
  12. node v13.13/dgram.d.ts +0 -0
  13. node v13.13/dns.d.ts +0 -0
  14. node v13.13/domain.d.ts +0 -0
  15. node v13.13/events.d.ts +0 -0
  16. node v13.13/fs.d.ts +0 -0
  17. node v13.13/globals.d.ts +42 -1
  18. node v13.13/globals.global.d.ts +0 -0
  19. node v13.13/http.d.ts +0 -0
  20. node v13.13/http2.d.ts +1 -1
  21. node v13.13/https.d.ts +0 -0
  22. node v13.13/index.d.ts +0 -0
  23. node v13.13/inspector.d.ts +0 -0
  24. node v13.13/module.d.ts +0 -0
  25. node v13.13/net.d.ts +0 -0
  26. node v13.13/os.d.ts +0 -0
  27. node v13.13/package.json +3 -8
  28. node v13.13/path.d.ts +0 -0
  29. node v13.13/perf_hooks.d.ts +0 -0
  30. node v13.13/process.d.ts +0 -0
  31. node v13.13/punycode.d.ts +0 -0
  32. node v13.13/querystring.d.ts +0 -0
  33. node v13.13/readline.d.ts +0 -0
  34. node v13.13/repl.d.ts +0 -0
  35. node v13.13/stream.d.ts +0 -0
  36. node v13.13/string_decoder.d.ts +0 -0
  37. node v13.13/timers.d.ts +0 -0
  38. node v13.13/tls.d.ts +0 -0
  39. node v13.13/trace_events.d.ts +0 -0
  40. node v13.13/{ts3.4 → ts3.6}/assert.d.ts +0 -0
  41. node v13.13/ts3.6/base.d.ts +43 -5
  42. node v13.13/ts3.6/index.d.ts +2 -3
  43. node v13.13/tty.d.ts +0 -0
  44. node v13.13/url.d.ts +0 -0
  45. node v13.13/util.d.ts +0 -0
  46. node v13.13/v8.d.ts +0 -0
  47. node v13.13/vm.d.ts +0 -0
  48. node v13.13/wasi.d.ts +0 -0
  49. node v13.13/worker_threads.d.ts +0 -0
  50. node v13.13/zlib.d.ts +0 -0
  51. node v13.13/ts3.4/base.d.ts +0 -54
  52. node v13.13/ts3.4/globals.global.d.ts +0 -1
  53. 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: Fri, 19 Feb 2021 17:58:45 GMT
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
@@ -131,7 +131,7 @@ declare module "async_hooks" {
131
131
  /**
132
132
  * Call AsyncHooks destroy callbacks.
133
133
  */
134
- emitDestroy(): void;
134
+ emitDestroy(): this;
135
135
 
136
136
  /**
137
137
  * @return the unique ID assigned to this AsyncResource instance.
node v13.13/base.d.ts CHANGED
File without changes
node v13.13/buffer.d.ts CHANGED
File without changes
File without changes
node v13.13/cluster.d.ts CHANGED
File without changes
node v13.13/console.d.ts CHANGED
File without changes
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
@@ -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
- emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
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;
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.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
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "13.13.45",
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": "320f8dd66d99ddc3386aa2ca41ed5cb1fe16cab7206360d80aa4e3ab6454b3d1",
230
- "typeScriptVersion": "3.4"
224
+ "typesPublisherContentHash": "5921cabce06e12c87c087dc5b59209d243f89f6c09b00ade39bf68abf6d22ebb",
225
+ "typeScriptVersion": "3.5"
231
226
  }
node v13.13/path.d.ts CHANGED
File without changes
File without changes
node v13.13/process.d.ts CHANGED
File without changes
node v13.13/punycode.d.ts CHANGED
File without changes
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
File without changes
node v13.13/timers.d.ts CHANGED
File without changes
node v13.13/tls.d.ts CHANGED
File without changes
File without changes
File without changes
@@ -1,10 +1,10 @@
1
- // NOTE: These definitions support NodeJS and TypeScript 3.5.
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 2.1
6
- // - ~/ts3.5/base.d.ts - Definitions specific to TypeScript 3.5
7
- // - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.5 with assert pulled in
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="../ts3.4/base.d.ts" />
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" />
@@ -1,7 +1,6 @@
1
1
  // NOTE: These definitions support NodeJS and TypeScript 3.5.
2
- // This is requried to enable typing assert in ts3.7 without causing errors
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
File without changes
node v13.13/zlib.d.ts CHANGED
File without changes
@@ -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;
@@ -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" />