@types/node 16.11.59 → 16.11.61

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 (56) hide show
  1. node v16.11/README.md +1 -1
  2. node v16.11/globals.d.ts +2 -0
  3. node v16.11/index.d.ts +1 -1
  4. node v16.11/package.json +9 -2
  5. node v16.11/ts4.8/assert/strict.d.ts +8 -0
  6. node v16.11/ts4.8/assert.d.ts +912 -0
  7. node v16.11/ts4.8/async_hooks.d.ts +497 -0
  8. node v16.11/ts4.8/buffer.d.ts +2232 -0
  9. node v16.11/ts4.8/child_process.d.ts +1366 -0
  10. node v16.11/ts4.8/cluster.d.ts +414 -0
  11. node v16.11/ts4.8/console.d.ts +412 -0
  12. node v16.11/ts4.8/constants.d.ts +18 -0
  13. node v16.11/ts4.8/crypto.d.ts +3860 -0
  14. node v16.11/ts4.8/dgram.d.ts +545 -0
  15. node v16.11/ts4.8/diagnostics_channel.d.ts +152 -0
  16. node v16.11/ts4.8/dns/promises.d.ts +368 -0
  17. node v16.11/ts4.8/dns.d.ts +654 -0
  18. node v16.11/ts4.8/domain.d.ts +170 -0
  19. node v16.11/ts4.8/events.d.ts +641 -0
  20. node v16.11/ts4.8/fs/promises.d.ts +1094 -0
  21. node v16.11/ts4.8/fs.d.ts +3799 -0
  22. node v16.11/ts4.8/globals.d.ts +284 -0
  23. node v16.11/ts4.8/globals.global.d.ts +1 -0
  24. node v16.11/ts4.8/http.d.ts +1477 -0
  25. node v16.11/ts4.8/http2.d.ts +2101 -0
  26. node v16.11/ts4.8/https.d.ts +531 -0
  27. node v16.11/ts4.8/index.d.ts +86 -0
  28. node v16.11/ts4.8/inspector.d.ts +2745 -0
  29. node v16.11/ts4.8/module.d.ts +114 -0
  30. node v16.11/ts4.8/net.d.ts +818 -0
  31. node v16.11/ts4.8/os.d.ts +455 -0
  32. node v16.11/ts4.8/path.d.ts +191 -0
  33. node v16.11/ts4.8/perf_hooks.d.ts +586 -0
  34. node v16.11/ts4.8/process.d.ts +1481 -0
  35. node v16.11/ts4.8/punycode.d.ts +117 -0
  36. node v16.11/ts4.8/querystring.d.ts +131 -0
  37. node v16.11/ts4.8/readline.d.ts +543 -0
  38. node v16.11/ts4.8/repl.d.ts +424 -0
  39. node v16.11/ts4.8/stream/consumers.d.ts +24 -0
  40. node v16.11/ts4.8/stream/promises.d.ts +42 -0
  41. node v16.11/ts4.8/stream/web.d.ts +392 -0
  42. node v16.11/ts4.8/stream.d.ts +1262 -0
  43. node v16.11/ts4.8/string_decoder.d.ts +67 -0
  44. node v16.11/ts4.8/test.d.ts +190 -0
  45. node v16.11/ts4.8/timers/promises.d.ts +68 -0
  46. node v16.11/ts4.8/timers.d.ts +94 -0
  47. node v16.11/ts4.8/tls.d.ts +1019 -0
  48. node v16.11/ts4.8/trace_events.d.ts +161 -0
  49. node v16.11/ts4.8/tty.d.ts +204 -0
  50. node v16.11/ts4.8/url.d.ts +855 -0
  51. node v16.11/ts4.8/util.d.ts +1594 -0
  52. node v16.11/ts4.8/v8.d.ts +378 -0
  53. node v16.11/ts4.8/vm.d.ts +507 -0
  54. node v16.11/ts4.8/wasi.d.ts +158 -0
  55. node v16.11/ts4.8/worker_threads.d.ts +649 -0
  56. node v16.11/ts4.8/zlib.d.ts +517 -0
node v16.11/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 13 Sep 2022 22:32:56 GMT
11
+ * Last updated: Mon, 26 Sep 2022 14:02:58 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -73,6 +73,7 @@ declare var AbortSignal: {
73
73
  prototype: AbortSignal;
74
74
  new(): AbortSignal;
75
75
  // TODO: Add abort() static
76
+ timeout(milliseconds: number): AbortSignal;
76
77
  };
77
78
  //#endregion borrowed
78
79
 
@@ -87,6 +88,7 @@ interface RelativeIndexable<T> {
87
88
  }
88
89
  interface String extends RelativeIndexable<string> {}
89
90
  interface Array<T> extends RelativeIndexable<T> {}
91
+ interface ReadonlyArray<T> extends RelativeIndexable<T> {}
90
92
  interface Int8Array extends RelativeIndexable<number> {}
91
93
  interface Uint8Array extends RelativeIndexable<number> {}
92
94
  interface Uint8ClampedArray extends RelativeIndexable<number> {}
node v16.11/index.d.ts CHANGED
@@ -67,7 +67,7 @@
67
67
  * IN THE SOFTWARE.
68
68
  */
69
69
 
70
- // NOTE: These definitions support NodeJS and TypeScript 3.7+.
70
+ // NOTE: These definitions support NodeJS and TypeScript 4.9+.
71
71
 
72
72
  // Reference required types from the default lib:
73
73
  /// <reference lib="es2020" />
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.59",
3
+ "version": "16.11.61",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -213,6 +213,13 @@
213
213
  ],
214
214
  "main": "",
215
215
  "types": "index.d.ts",
216
+ "typesVersions": {
217
+ "<4.9.0-0": {
218
+ "*": [
219
+ "ts4.8/*"
220
+ ]
221
+ }
222
+ },
216
223
  "repository": {
217
224
  "type": "git",
218
225
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -220,6 +227,6 @@
220
227
  },
221
228
  "scripts": {},
222
229
  "dependencies": {},
223
- "typesPublisherContentHash": "edf0b62426dfb1758c195e77416f84352ab2a9c1e0e1c19d2ee42ef9e06b8bd6",
230
+ "typesPublisherContentHash": "a7daca7e9e006a0272140cf8a970521a2b52498513c3ae302fa6354b0128e9f2",
224
231
  "typeScriptVersion": "4.1"
225
232
  }
@@ -0,0 +1,8 @@
1
+ declare module 'assert/strict' {
2
+ import { strict } from 'node:assert';
3
+ export = strict;
4
+ }
5
+ declare module 'node:assert/strict' {
6
+ import { strict } from 'node:assert';
7
+ export = strict;
8
+ }