@types/node 16.18.86 → 16.18.88

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 (55) hide show
  1. node v16.18/README.md +2 -2
  2. node v16.18/package.json +3 -15
  3. node v16.18/ts4.8/assert/strict.d.ts +0 -8
  4. node v16.18/ts4.8/assert.d.ts +0 -986
  5. node v16.18/ts4.8/async_hooks.d.ts +0 -501
  6. node v16.18/ts4.8/buffer.d.ts +0 -2266
  7. node v16.18/ts4.8/child_process.d.ts +0 -1536
  8. node v16.18/ts4.8/cluster.d.ts +0 -436
  9. node v16.18/ts4.8/console.d.ts +0 -412
  10. node v16.18/ts4.8/constants.d.ts +0 -19
  11. node v16.18/ts4.8/crypto.d.ts +0 -4346
  12. node v16.18/ts4.8/dgram.d.ts +0 -591
  13. node v16.18/ts4.8/diagnostics_channel.d.ts +0 -191
  14. node v16.18/ts4.8/dns/promises.d.ts +0 -372
  15. node v16.18/ts4.8/dns.d.ts +0 -796
  16. node v16.18/ts4.8/dom-events.d.ts +0 -122
  17. node v16.18/ts4.8/domain.d.ts +0 -170
  18. node v16.18/ts4.8/events.d.ts +0 -714
  19. node v16.18/ts4.8/fs/promises.d.ts +0 -1124
  20. node v16.18/ts4.8/fs.d.ts +0 -4030
  21. node v16.18/ts4.8/globals.d.ts +0 -291
  22. node v16.18/ts4.8/globals.global.d.ts +0 -1
  23. node v16.18/ts4.8/http.d.ts +0 -1586
  24. node v16.18/ts4.8/http2.d.ts +0 -2353
  25. node v16.18/ts4.8/https.d.ts +0 -534
  26. node v16.18/ts4.8/index.d.ts +0 -86
  27. node v16.18/ts4.8/inspector.d.ts +0 -2743
  28. node v16.18/ts4.8/module.d.ts +0 -221
  29. node v16.18/ts4.8/net.d.ts +0 -858
  30. node v16.18/ts4.8/os.d.ts +0 -455
  31. node v16.18/ts4.8/path.d.ts +0 -191
  32. node v16.18/ts4.8/perf_hooks.d.ts +0 -603
  33. node v16.18/ts4.8/process.d.ts +0 -1525
  34. node v16.18/ts4.8/punycode.d.ts +0 -117
  35. node v16.18/ts4.8/querystring.d.ts +0 -141
  36. node v16.18/ts4.8/readline.d.ts +0 -553
  37. node v16.18/ts4.8/repl.d.ts +0 -430
  38. node v16.18/ts4.8/stream/consumers.d.ts +0 -12
  39. node v16.18/ts4.8/stream/promises.d.ts +0 -83
  40. node v16.18/ts4.8/stream/web.d.ts +0 -392
  41. node v16.18/ts4.8/stream.d.ts +0 -1494
  42. node v16.18/ts4.8/string_decoder.d.ts +0 -67
  43. node v16.18/ts4.8/test.d.ts +0 -190
  44. node v16.18/ts4.8/timers/promises.d.ts +0 -93
  45. node v16.18/ts4.8/timers.d.ts +0 -109
  46. node v16.18/ts4.8/tls.d.ts +0 -1099
  47. node v16.18/ts4.8/trace_events.d.ts +0 -161
  48. node v16.18/ts4.8/tty.d.ts +0 -204
  49. node v16.18/ts4.8/url.d.ts +0 -885
  50. node v16.18/ts4.8/util.d.ts +0 -1689
  51. node v16.18/ts4.8/v8.d.ts +0 -626
  52. node v16.18/ts4.8/vm.d.ts +0 -507
  53. node v16.18/ts4.8/wasi.d.ts +0 -158
  54. node v16.18/ts4.8/worker_threads.d.ts +0 -649
  55. node v16.18/ts4.8/zlib.d.ts +0 -517
@@ -1,291 +0,0 @@
1
- // Declare "static" methods in Error
2
- interface ErrorConstructor {
3
- /** Create .stack property on a target object */
4
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
5
-
6
- /**
7
- * Optional override for formatting stack traces
8
- *
9
- * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
10
- */
11
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
-
13
- stackTraceLimit: number;
14
- }
15
-
16
- /*-----------------------------------------------*
17
- * *
18
- * GLOBAL *
19
- * *
20
- ------------------------------------------------*/
21
-
22
- // For backwards compability
23
- interface NodeRequire extends NodeJS.Require {}
24
- interface RequireResolve extends NodeJS.RequireResolve {}
25
- interface NodeModule extends NodeJS.Module {}
26
-
27
- declare var process: NodeJS.Process;
28
- declare var console: Console;
29
-
30
- declare var __filename: string;
31
- declare var __dirname: string;
32
-
33
- declare var require: NodeRequire;
34
- declare var module: NodeModule;
35
-
36
- // Same as module.exports
37
- declare var exports: any;
38
-
39
- /**
40
- * Only available if `--expose-gc` is passed to the process.
41
- */
42
- declare var gc: undefined | (() => void);
43
-
44
- // #region borrowed
45
- // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
46
- /** A controller object that allows you to abort one or more DOM requests as and when desired. */
47
- interface AbortController {
48
- /**
49
- * Returns the AbortSignal object associated with this object.
50
- */
51
-
52
- readonly signal: AbortSignal;
53
- /**
54
- * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
55
- */
56
- abort(reason?: any): void;
57
- }
58
-
59
- /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
60
- interface AbortSignal extends EventTarget {
61
- /**
62
- * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
63
- */
64
- readonly aborted: boolean;
65
- readonly reason: any;
66
- onabort: null | ((this: AbortSignal, event: Event) => any);
67
- throwIfAborted(): void;
68
- }
69
-
70
- declare var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
71
- : {
72
- prototype: AbortController;
73
- new(): AbortController;
74
- };
75
-
76
- declare var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
77
- : {
78
- prototype: AbortSignal;
79
- new(): AbortSignal;
80
- abort(reason?: any): AbortSignal;
81
- timeout(milliseconds: number): AbortSignal;
82
- };
83
- // #endregion borrowed
84
-
85
- // #region ArrayLike.at()
86
- interface RelativeIndexable<T> {
87
- /**
88
- * Takes an integer value and returns the item at that index,
89
- * allowing for positive and negative integers.
90
- * Negative integers count back from the last item in the array.
91
- */
92
- at(index: number): T | undefined;
93
- }
94
- interface String extends RelativeIndexable<string> {}
95
- interface Array<T> extends RelativeIndexable<T> {}
96
- interface ReadonlyArray<T> extends RelativeIndexable<T> {}
97
- interface Int8Array extends RelativeIndexable<number> {}
98
- interface Uint8Array extends RelativeIndexable<number> {}
99
- interface Uint8ClampedArray extends RelativeIndexable<number> {}
100
- interface Int16Array extends RelativeIndexable<number> {}
101
- interface Uint16Array extends RelativeIndexable<number> {}
102
- interface Int32Array extends RelativeIndexable<number> {}
103
- interface Uint32Array extends RelativeIndexable<number> {}
104
- interface Float32Array extends RelativeIndexable<number> {}
105
- interface Float64Array extends RelativeIndexable<number> {}
106
- interface BigInt64Array extends RelativeIndexable<bigint> {}
107
- interface BigUint64Array extends RelativeIndexable<bigint> {}
108
- // #endregion ArrayLike.at() end
109
-
110
- /*----------------------------------------------*
111
- * *
112
- * GLOBAL INTERFACES *
113
- * *
114
- *-----------------------------------------------*/
115
- declare namespace NodeJS {
116
- interface CallSite {
117
- /**
118
- * Value of "this"
119
- */
120
- getThis(): unknown;
121
-
122
- /**
123
- * Type of "this" as a string.
124
- * This is the name of the function stored in the constructor field of
125
- * "this", if available. Otherwise the object's [[Class]] internal
126
- * property.
127
- */
128
- getTypeName(): string | null;
129
-
130
- /**
131
- * Current function
132
- */
133
- getFunction(): Function | undefined;
134
-
135
- /**
136
- * Name of the current function, typically its name property.
137
- * If a name property is not available an attempt will be made to try
138
- * to infer a name from the function's context.
139
- */
140
- getFunctionName(): string | null;
141
-
142
- /**
143
- * Name of the property [of "this" or one of its prototypes] that holds
144
- * the current function
145
- */
146
- getMethodName(): string | null;
147
-
148
- /**
149
- * Name of the script [if this function was defined in a script]
150
- */
151
- getFileName(): string | undefined;
152
-
153
- /**
154
- * Current line number [if this function was defined in a script]
155
- */
156
- getLineNumber(): number | null;
157
-
158
- /**
159
- * Current column number [if this function was defined in a script]
160
- */
161
- getColumnNumber(): number | null;
162
-
163
- /**
164
- * A call site object representing the location where eval was called
165
- * [if this function was created using a call to eval]
166
- */
167
- getEvalOrigin(): string | undefined;
168
-
169
- /**
170
- * Is this a toplevel invocation, that is, is "this" the global object?
171
- */
172
- isToplevel(): boolean;
173
-
174
- /**
175
- * Does this call take place in code defined by a call to eval?
176
- */
177
- isEval(): boolean;
178
-
179
- /**
180
- * Is this call in native V8 code?
181
- */
182
- isNative(): boolean;
183
-
184
- /**
185
- * Is this a constructor call?
186
- */
187
- isConstructor(): boolean;
188
- }
189
-
190
- interface ErrnoException extends Error {
191
- errno?: number | undefined;
192
- code?: string | undefined;
193
- path?: string | undefined;
194
- syscall?: string | undefined;
195
- }
196
-
197
- interface ReadableStream extends EventEmitter {
198
- readable: boolean;
199
- read(size?: number): string | Buffer;
200
- setEncoding(encoding: BufferEncoding): this;
201
- pause(): this;
202
- resume(): this;
203
- isPaused(): boolean;
204
- pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
205
- unpipe(destination?: WritableStream): this;
206
- unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
207
- wrap(oldStream: ReadableStream): this;
208
- [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
209
- }
210
-
211
- interface WritableStream extends EventEmitter {
212
- writable: boolean;
213
- write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
214
- write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
215
- end(cb?: () => void): void;
216
- end(data: string | Uint8Array, cb?: () => void): void;
217
- end(str: string, encoding?: BufferEncoding, cb?: () => void): void;
218
- }
219
-
220
- interface ReadWriteStream extends ReadableStream, WritableStream {}
221
-
222
- interface RefCounted {
223
- ref(): this;
224
- unref(): this;
225
- }
226
-
227
- type TypedArray =
228
- | Uint8Array
229
- | Uint8ClampedArray
230
- | Uint16Array
231
- | Uint32Array
232
- | Int8Array
233
- | Int16Array
234
- | Int32Array
235
- | BigUint64Array
236
- | BigInt64Array
237
- | Float32Array
238
- | Float64Array;
239
- type ArrayBufferView = TypedArray | DataView;
240
-
241
- interface Require {
242
- (id: string): any;
243
- resolve: RequireResolve;
244
- cache: Dict<NodeModule>;
245
- /**
246
- * @deprecated
247
- */
248
- extensions: RequireExtensions;
249
- main: Module | undefined;
250
- }
251
-
252
- interface RequireResolve {
253
- (id: string, options?: { paths?: string[] | undefined }): string;
254
- paths(request: string): string[] | null;
255
- }
256
-
257
- interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
258
- ".js": (m: Module, filename: string) => any;
259
- ".json": (m: Module, filename: string) => any;
260
- ".node": (m: Module, filename: string) => any;
261
- }
262
- interface Module {
263
- /**
264
- * `true` if the module is running during the Node.js preload
265
- */
266
- isPreloading: boolean;
267
- exports: any;
268
- require: Require;
269
- id: string;
270
- filename: string;
271
- loaded: boolean;
272
- /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
273
- parent: Module | null | undefined;
274
- children: Module[];
275
- /**
276
- * @since v11.14.0
277
- *
278
- * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
279
- */
280
- path: string;
281
- paths: string[];
282
- }
283
-
284
- interface Dict<T> {
285
- [key: string]: T | undefined;
286
- }
287
-
288
- interface ReadOnlyDict<T> {
289
- readonly [key: string]: T | undefined;
290
- }
291
- }
@@ -1 +0,0 @@
1
- declare var global: typeof globalThis;