@types/node 18.7.17 → 18.7.19

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 (58) hide show
  1. node/README.md +1 -1
  2. node/globals.d.ts +1 -0
  3. node/index.d.ts +1 -1
  4. node/package.json +9 -2
  5. node/path.d.ts +2 -2
  6. node/ts4.8/assert/strict.d.ts +8 -0
  7. node/ts4.8/assert.d.ts +911 -0
  8. node/ts4.8/async_hooks.d.ts +501 -0
  9. node/ts4.8/buffer.d.ts +2238 -0
  10. node/ts4.8/child_process.d.ts +1369 -0
  11. node/ts4.8/cluster.d.ts +410 -0
  12. node/ts4.8/console.d.ts +412 -0
  13. node/ts4.8/constants.d.ts +18 -0
  14. node/ts4.8/crypto.d.ts +3961 -0
  15. node/ts4.8/dgram.d.ts +545 -0
  16. node/ts4.8/diagnostics_channel.d.ts +153 -0
  17. node/ts4.8/dns/promises.d.ts +370 -0
  18. node/ts4.8/dns.d.ts +659 -0
  19. node/ts4.8/domain.d.ts +170 -0
  20. node/ts4.8/events.d.ts +641 -0
  21. node/ts4.8/fs/promises.d.ts +1120 -0
  22. node/ts4.8/fs.d.ts +3872 -0
  23. node/ts4.8/globals.d.ts +294 -0
  24. node/ts4.8/globals.global.d.ts +1 -0
  25. node/ts4.8/http.d.ts +1553 -0
  26. node/ts4.8/http2.d.ts +2106 -0
  27. node/ts4.8/https.d.ts +541 -0
  28. node/ts4.8/index.d.ts +87 -0
  29. node/ts4.8/inspector.d.ts +2741 -0
  30. node/ts4.8/module.d.ts +114 -0
  31. node/ts4.8/net.d.ts +838 -0
  32. node/ts4.8/os.d.ts +465 -0
  33. node/ts4.8/path.d.ts +191 -0
  34. node/ts4.8/perf_hooks.d.ts +610 -0
  35. node/ts4.8/process.d.ts +1482 -0
  36. node/ts4.8/punycode.d.ts +117 -0
  37. node/ts4.8/querystring.d.ts +131 -0
  38. node/ts4.8/readline/promises.d.ts +143 -0
  39. node/ts4.8/readline.d.ts +653 -0
  40. node/ts4.8/repl.d.ts +424 -0
  41. node/ts4.8/stream/consumers.d.ts +24 -0
  42. node/ts4.8/stream/promises.d.ts +42 -0
  43. node/ts4.8/stream/web.d.ts +330 -0
  44. node/ts4.8/stream.d.ts +1339 -0
  45. node/ts4.8/string_decoder.d.ts +67 -0
  46. node/ts4.8/test.d.ts +190 -0
  47. node/ts4.8/timers/promises.d.ts +68 -0
  48. node/ts4.8/timers.d.ts +94 -0
  49. node/ts4.8/tls.d.ts +1028 -0
  50. node/ts4.8/trace_events.d.ts +171 -0
  51. node/ts4.8/tty.d.ts +206 -0
  52. node/ts4.8/url.d.ts +897 -0
  53. node/ts4.8/util.d.ts +1792 -0
  54. node/ts4.8/v8.d.ts +396 -0
  55. node/ts4.8/vm.d.ts +509 -0
  56. node/ts4.8/wasi.d.ts +158 -0
  57. node/ts4.8/worker_threads.d.ts +646 -0
  58. node/ts4.8/zlib.d.ts +517 -0
node/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 12 Sep 2022 21:02:42 GMT
11
+ * Last updated: Fri, 23 Sep 2022 18:33:21 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/globals.d.ts CHANGED
@@ -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
 
node/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" />
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.7.17",
3
+ "version": "18.7.19",
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": "87d9ec7b5b77935b38b5c3186088712961db669872c74d6cf34b8606c5f98704",
230
+ "typesPublisherContentHash": "8668bf76fd126d771eafbf06282865709afa740cc209465ac22ccbee29653cff",
224
231
  "typeScriptVersion": "4.1"
225
232
  }
node/path.d.ts CHANGED
@@ -137,11 +137,11 @@ declare module 'path' {
137
137
  /**
138
138
  * The platform-specific file separator. '\\' or '/'.
139
139
  */
140
- readonly sep: string;
140
+ readonly sep: '\\' | '/';
141
141
  /**
142
142
  * The platform-specific file delimiter. ';' or ':'.
143
143
  */
144
- readonly delimiter: string;
144
+ readonly delimiter: ';' | ':';
145
145
  /**
146
146
  * Returns an object from a path string - the opposite of format().
147
147
  *
@@ -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
+ }