@types/node 15.14.6 → 16.0.0

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 (64) hide show
  1. {node v15.14 → node}/LICENSE +0 -0
  2. node v15.14/README.md → node/README.md +3 -3
  3. node/assert/strict.d.ts +9 -0
  4. node v15.14/assert.d.ts → node/assert.d.ts +32 -27
  5. node v15.14/async_hooks.d.ts → node/async_hooks.d.ts +5 -1
  6. {node v15.14 → node}/base.d.ts +0 -0
  7. node/buffer.d.ts +357 -0
  8. node v15.14/child_process.d.ts → node/child_process.d.ts +5 -1
  9. node v15.14/cluster.d.ts → node/cluster.d.ts +25 -100
  10. node v15.14/console.d.ts → node/console.d.ts +21 -20
  11. node v15.14/constants.d.ts → node/constants.d.ts +5 -0
  12. node v15.14/crypto.d.ts → node/crypto.d.ts +21 -6
  13. node v15.14/dgram.d.ts → node/dgram.d.ts +4 -0
  14. node v15.14/diagnostic_channel.d.ts → node/diagnostic_channel.d.ts +4 -0
  15. node v15.14/dns/promises.d.ts → node/dns/promises.d.ts +4 -0
  16. node v15.14/dns.d.ts → node/dns.d.ts +4 -0
  17. node/domain.d.ts +25 -0
  18. node v15.14/events.d.ts → node/events.d.ts +5 -0
  19. node v15.14/fs/promises.d.ts → node/fs/promises.d.ts +4 -0
  20. node v15.14/fs.d.ts → node/fs.d.ts +12 -20
  21. node/globals.d.ts +274 -0
  22. node/globals.global.d.ts +1 -0
  23. node v15.14/http.d.ts → node/http.d.ts +5 -1
  24. node v15.14/http2.d.ts → node/http2.d.ts +4 -1
  25. node v15.14/https.d.ts → node/https.d.ts +4 -0
  26. node v15.14/index.d.ts → node/index.d.ts +1 -1
  27. node v15.14/inspector.d.ts → node/inspector.d.ts +4 -322
  28. node v15.14/module.d.ts → node/module.d.ts +25 -4
  29. node v15.14/net.d.ts → node/net.d.ts +4 -6
  30. node v15.14/os.d.ts → node/os.d.ts +4 -0
  31. node v15.14/package.json → node/package.json +2 -2
  32. node v15.14/path.d.ts → node/path.d.ts +5 -0
  33. node v15.14/perf_hooks.d.ts → node/perf_hooks.d.ts +66 -19
  34. node v15.14/process.d.ts → node/process.d.ts +41 -38
  35. node v15.14/punycode.d.ts → node/punycode.d.ts +4 -0
  36. node v15.14/querystring.d.ts → node/querystring.d.ts +4 -0
  37. node v15.14/readline.d.ts → node/readline.d.ts +5 -1
  38. node v15.14/repl.d.ts → node/repl.d.ts +4 -0
  39. node v15.14/stream/promises.d.ts → node/stream/promises.d.ts +4 -0
  40. node v15.14/stream.d.ts → node/stream.d.ts +5 -0
  41. node v15.14/string_decoder.d.ts → node/string_decoder.d.ts +4 -0
  42. node v15.14/timers/promises.d.ts → node/timers/promises.d.ts +4 -0
  43. node/timers.d.ts +92 -0
  44. node v15.14/tls.d.ts → node/tls.d.ts +4 -0
  45. node v15.14/trace_events.d.ts → node/trace_events.d.ts +4 -0
  46. node v15.14/ts3.6/assert.d.ts → node/ts3.6/assert.d.ts +26 -26
  47. {node v15.14 → node}/ts3.6/base.d.ts +0 -0
  48. {node v15.14 → node}/ts3.6/index.d.ts +0 -0
  49. node v15.14/tty.d.ts → node/tty.d.ts +4 -0
  50. node v15.14/url.d.ts → node/url.d.ts +4 -0
  51. node/util/types.d.ts +57 -0
  52. node v15.14/util.d.ts → node/util.d.ts +65 -19
  53. node v15.14/v8.d.ts → node/v8.d.ts +4 -0
  54. node v15.14/vm.d.ts → node/vm.d.ts +4 -0
  55. node v15.14/wasi.d.ts → node/wasi.d.ts +4 -0
  56. node v15.14/worker_threads.d.ts → node/worker_threads.d.ts +4 -0
  57. node v15.14/zlib.d.ts → node/zlib.d.ts +4 -0
  58. node v15.14/assert/strict.d.ts +0 -4
  59. node v15.14/buffer.d.ts +0 -112
  60. node v15.14/domain.d.ts +0 -24
  61. node v15.14/globals.d.ts +0 -659
  62. node v15.14/globals.global.d.ts +0 -1
  63. node v15.14/timers.d.ts +0 -27
  64. node v15.14/util/types.d.ts +0 -53
@@ -359,3 +359,7 @@ declare module 'zlib' {
359
359
  /** @deprecated */
360
360
  const Z_DEFLATED: number;
361
361
  }
362
+
363
+ declare module 'node:zlib' {
364
+ export * from 'zlib';
365
+ }
@@ -1,4 +0,0 @@
1
- declare module 'assert/strict' {
2
- import { strict } from 'assert';
3
- export = strict;
4
- }
node v15.14/buffer.d.ts DELETED
@@ -1,112 +0,0 @@
1
- declare module 'buffer' {
2
- import { BinaryLike } from 'crypto';
3
-
4
- export const INSPECT_MAX_BYTES: number;
5
- export const kMaxLength: number;
6
- export const kStringMaxLength: number;
7
- export const constants: {
8
- MAX_LENGTH: number;
9
- MAX_STRING_LENGTH: number;
10
- };
11
- const BuffType: typeof Buffer;
12
-
13
- export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary";
14
-
15
- export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
16
-
17
- export const SlowBuffer: {
18
- /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
19
- new(size: number): Buffer;
20
- prototype: Buffer;
21
- };
22
-
23
- export { BuffType as Buffer };
24
-
25
- /**
26
- * @experimental
27
- */
28
- export interface BlobOptions {
29
- /**
30
- * @default 'utf8'
31
- */
32
- encoding?: BufferEncoding;
33
-
34
- /**
35
- * The Blob content-type. The intent is for `type` to convey
36
- * the MIME media type of the data, however no validation of the type format
37
- * is performed.
38
- */
39
- type?: string;
40
- }
41
-
42
- /**
43
- * @experimental
44
- */
45
- export class Blob {
46
- /**
47
- * Returns a promise that fulfills with an {ArrayBuffer} containing a copy of the `Blob` data.
48
- */
49
- readonly size: number;
50
-
51
- /**
52
- * The content-type of the `Blob`.
53
- */
54
- readonly type: string;
55
-
56
- /**
57
- * Creates a new `Blob` object containing a concatenation of the given sources.
58
- *
59
- * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into
60
- * the 'Blob' and can therefore be safely modified after the 'Blob' is created.
61
- *
62
- * String sources are also copied into the `Blob`.
63
- */
64
- constructor(sources: Array<(BinaryLike | Blob)>, options?: BlobOptions);
65
-
66
- arrayBuffer(): Promise<ArrayBuffer>;
67
-
68
- /**
69
- * @param start The starting index.
70
- * @param end The ending index.
71
- * @param type The content-type for the new `Blob`
72
- */
73
- slice(start?: number, end?: number, type?: string): Blob;
74
-
75
- /**
76
- * Returns a promise that resolves the contents of the `Blob` decoded as a UTF-8 string.
77
- */
78
- text(): Promise<string>;
79
- }
80
-
81
- /**
82
- * Decodes a string of Base64-encoded data into bytes, and encodes those bytes into a string using Latin-1 (ISO-8859-1).
83
- *
84
- * This function is only provided for compatibility with legacy web platform APIs
85
- * and should never be used in new code, because they use strings to represent
86
- * binary data and predate the introduction of typed arrays in JavaScript.
87
- * For code running using Node.js APIs, converting between base64-encoded strings
88
- * and binary data should be performed using `Buffer.from(str, 'base64')` and
89
- * `buf.toString('base64')`.
90
- *
91
- * @deprecated dom compatibility
92
- */
93
- export function atob(input: string): string;
94
-
95
- /**
96
- * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes into a string using Base64.
97
- *
98
- * This function is only provided for compatibility with legacy web platform APIs
99
- * and should never be used in new code, because they use strings to represent
100
- * binary data and predate the introduction of typed arrays in JavaScript.
101
- * For code running using Node.js APIs, converting between base64-encoded strings
102
- * and binary data should be performed using `Buffer.from(str, 'base64')` and
103
- * `buf.toString('base64')`.
104
- *
105
- * @deprecated dom compatibility
106
- */
107
- export function btoa(input: string): string;
108
- }
109
-
110
- declare module 'node:buffer' {
111
- export * from 'buffer';
112
- }
node v15.14/domain.d.ts DELETED
@@ -1,24 +0,0 @@
1
- declare module 'domain' {
2
- import EventEmitter = require('events');
3
-
4
- global {
5
- namespace NodeJS {
6
- interface Domain extends EventEmitter {
7
- run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
8
- add(emitter: EventEmitter | Timer): void;
9
- remove(emitter: EventEmitter | Timer): void;
10
- bind<T extends Function>(cb: T): T;
11
- intercept<T extends Function>(cb: T): T;
12
- }
13
- }
14
- }
15
-
16
- interface Domain extends NodeJS.Domain {}
17
- class Domain extends EventEmitter {
18
- members: Array<EventEmitter | NodeJS.Timer>;
19
- enter(): void;
20
- exit(): void;
21
- }
22
-
23
- function create(): Domain;
24
- }