@types/node 16.11.13 → 16.11.17

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 (54) hide show
  1. {node → node v16.11}/LICENSE +0 -0
  2. node/README.md → node v16.11/README.md +2 -2
  3. {node → node v16.11}/assert/strict.d.ts +0 -0
  4. {node → node v16.11}/assert.d.ts +0 -0
  5. {node → node v16.11}/async_hooks.d.ts +0 -0
  6. {node → node v16.11}/buffer.d.ts +0 -0
  7. {node → node v16.11}/child_process.d.ts +0 -0
  8. {node → node v16.11}/cluster.d.ts +0 -0
  9. {node → node v16.11}/console.d.ts +0 -0
  10. {node → node v16.11}/constants.d.ts +0 -0
  11. {node → node v16.11}/crypto.d.ts +0 -0
  12. {node → node v16.11}/dgram.d.ts +0 -0
  13. {node → node v16.11}/diagnostics_channel.d.ts +0 -0
  14. {node → node v16.11}/dns/promises.d.ts +0 -0
  15. {node → node v16.11}/dns.d.ts +0 -0
  16. {node → node v16.11}/domain.d.ts +0 -0
  17. {node → node v16.11}/events.d.ts +0 -0
  18. node/fs/promises.d.ts → node v16.11/fs/promises.d.ts +4 -4
  19. {node → node v16.11}/fs.d.ts +0 -0
  20. {node → node v16.11}/globals.d.ts +0 -0
  21. {node → node v16.11}/globals.global.d.ts +0 -0
  22. {node → node v16.11}/http.d.ts +0 -0
  23. node/http2.d.ts → node v16.11/http2.d.ts +1 -1
  24. {node → node v16.11}/https.d.ts +0 -0
  25. {node → node v16.11}/index.d.ts +0 -0
  26. {node → node v16.11}/inspector.d.ts +0 -0
  27. {node → node v16.11}/module.d.ts +0 -0
  28. {node → node v16.11}/net.d.ts +0 -0
  29. {node → node v16.11}/os.d.ts +0 -0
  30. node/package.json → node v16.11/package.json +2 -2
  31. node/path.d.ts → node v16.11/path.d.ts +8 -0
  32. node/perf_hooks.d.ts → node v16.11/perf_hooks.d.ts +2 -0
  33. {node → node v16.11}/process.d.ts +0 -0
  34. {node → node v16.11}/punycode.d.ts +0 -0
  35. {node → node v16.11}/querystring.d.ts +0 -0
  36. {node → node v16.11}/readline.d.ts +0 -0
  37. {node → node v16.11}/repl.d.ts +0 -0
  38. {node → node v16.11}/stream/consumers.d.ts +0 -0
  39. {node → node v16.11}/stream/promises.d.ts +0 -0
  40. {node → node v16.11}/stream/web.d.ts +0 -0
  41. {node → node v16.11}/stream.d.ts +0 -0
  42. {node → node v16.11}/string_decoder.d.ts +0 -0
  43. {node → node v16.11}/timers/promises.d.ts +0 -0
  44. {node → node v16.11}/timers.d.ts +0 -0
  45. {node → node v16.11}/tls.d.ts +0 -0
  46. {node → node v16.11}/trace_events.d.ts +0 -0
  47. {node → node v16.11}/tty.d.ts +0 -0
  48. {node → node v16.11}/url.d.ts +0 -0
  49. {node → node v16.11}/util.d.ts +0 -0
  50. {node → node v16.11}/v8.d.ts +0 -0
  51. {node → node v16.11}/vm.d.ts +0 -0
  52. {node → node v16.11}/wasi.d.ts +0 -0
  53. {node → node v16.11}/worker_threads.d.ts +0 -0
  54. {node → node v16.11}/zlib.d.ts +0 -0
File without changes
@@ -5,10 +5,10 @@
5
5
  This package contains type definitions for Node.js (https://nodejs.org/).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
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, 14 Dec 2021 18:31:12 GMT
11
+ * Last updated: Thu, 23 Dec 2021 09:01:23 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -42,11 +42,11 @@ declare module 'fs/promises' {
42
42
  mode?: Mode | undefined;
43
43
  flag?: OpenMode | undefined;
44
44
  }
45
- interface FileReadResult<T extends NodeJS.ArrayBufferView> {
45
+ interface FileReadResult<T extends ArrayBufferView> {
46
46
  bytesRead: number;
47
47
  buffer: T;
48
48
  }
49
- interface FileReadOptions<T extends NodeJS.ArrayBufferView = Buffer> {
49
+ interface FileReadOptions<T extends ArrayBufferView = Buffer> {
50
50
  /**
51
51
  * @default `Buffer.alloc(0xffff)`
52
52
  */
@@ -207,8 +207,8 @@ declare module 'fs/promises' {
207
207
  * integer, the current file position will remain unchanged.
208
208
  * @return Fulfills upon success with an object with two properties:
209
209
  */
210
- read<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number | null, length?: number | null, position?: number | null): Promise<FileReadResult<T>>;
211
- read<T extends NodeJS.ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
210
+ read<T extends ArrayBufferView>(buffer: T, offset?: number | null, length?: number | null, position?: number | null): Promise<FileReadResult<T>>;
211
+ read<T extends ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
212
212
  /**
213
213
  * Asynchronously reads the entire contents of a file.
214
214
  *
File without changes
File without changes
File without changes
File without changes
@@ -1349,7 +1349,7 @@ declare module 'http2' {
1349
1349
  * ```
1350
1350
  * @since v8.4.0
1351
1351
  */
1352
- readonly url: string;
1352
+ url: string;
1353
1353
  /**
1354
1354
  * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is
1355
1355
  * provided, then it is added as a listener on the `'timeout'` event on
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.13",
3
+ "version": "16.11.17",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -225,6 +225,6 @@
225
225
  },
226
226
  "scripts": {},
227
227
  "dependencies": {},
228
- "typesPublisherContentHash": "f3f803cc728cfa9fc133f66f32710382f549baaa803e7f41dd0a3afa940084f4",
228
+ "typesPublisherContentHash": "de06a9ab36ebee1c135eda3986378e39f96f6538bb668140f5fd7f54184549a6",
229
229
  "typeScriptVersion": "3.8"
230
230
  }
@@ -170,3 +170,11 @@ declare module 'node:path' {
170
170
  import path = require('path');
171
171
  export = path;
172
172
  }
173
+ declare module 'node:path/posix' {
174
+ import path = require('path/posix');
175
+ export = path;
176
+ }
177
+ declare module 'node:path/win32' {
178
+ import path = require('path/win32');
179
+ export = path;
180
+ }
@@ -397,9 +397,11 @@ declare module 'perf_hooks' {
397
397
  options:
398
398
  | {
399
399
  entryTypes: ReadonlyArray<EntryType>;
400
+ buffered?: boolean | undefined;
400
401
  }
401
402
  | {
402
403
  type: EntryType;
404
+ buffered?: boolean | undefined;
403
405
  }
404
406
  ): void;
405
407
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes