@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,221 +0,0 @@
1
- /**
2
- * @since v0.3.7
3
- */
4
- declare module "module" {
5
- import { URL } from "node:url";
6
- import { MessagePort } from "node:worker_threads";
7
- namespace Module {
8
- /**
9
- * The `module.syncBuiltinESMExports()` method updates all the live bindings for
10
- * builtin `ES Modules` to match the properties of the `CommonJS` exports. It
11
- * does not add or remove exported names from the `ES Modules`.
12
- *
13
- * ```js
14
- * const fs = require('fs');
15
- * const assert = require('assert');
16
- * const { syncBuiltinESMExports } = require('module');
17
- *
18
- * fs.readFile = newAPI;
19
- *
20
- * delete fs.readFileSync;
21
- *
22
- * function newAPI() {
23
- * // ...
24
- * }
25
- *
26
- * fs.newAPI = newAPI;
27
- *
28
- * syncBuiltinESMExports();
29
- *
30
- * import('fs').then((esmFS) => {
31
- * // It syncs the existing readFile property with the new value
32
- * assert.strictEqual(esmFS.readFile, newAPI);
33
- * // readFileSync has been deleted from the required fs
34
- * assert.strictEqual('readFileSync' in fs, false);
35
- * // syncBuiltinESMExports() does not remove readFileSync from esmFS
36
- * assert.strictEqual('readFileSync' in esmFS, true);
37
- * // syncBuiltinESMExports() does not add names
38
- * assert.strictEqual(esmFS.newAPI, undefined);
39
- * });
40
- * ```
41
- * @since v12.12.0
42
- */
43
- function syncBuiltinESMExports(): void;
44
- /**
45
- * `path` is the resolved path for the file for which a corresponding source map
46
- * should be fetched.
47
- * @since v13.7.0, v12.17.0
48
- */
49
- function findSourceMap(path: string, error?: Error): SourceMap;
50
- interface SourceMapPayload {
51
- file: string;
52
- version: number;
53
- sources: string[];
54
- sourcesContent: string[];
55
- names: string[];
56
- mappings: string;
57
- sourceRoot: string;
58
- }
59
- interface SourceMapping {
60
- generatedLine: number;
61
- generatedColumn: number;
62
- originalSource: string;
63
- originalLine: number;
64
- originalColumn: number;
65
- }
66
- /**
67
- * @since v13.7.0, v12.17.0
68
- */
69
- class SourceMap {
70
- /**
71
- * Getter for the payload used to construct the `SourceMap` instance.
72
- */
73
- readonly payload: SourceMapPayload;
74
- constructor(payload: SourceMapPayload);
75
- /**
76
- * Given a line number and column number in the generated source file, returns
77
- * an object representing the position in the original file. The object returned
78
- * consists of the following keys:
79
- */
80
- findEntry(line: number, column: number): SourceMapping;
81
- }
82
- interface ImportAssertions extends NodeJS.Dict<string> {
83
- type?: string | undefined;
84
- }
85
- type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm";
86
- type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
87
- interface GlobalPreloadContext {
88
- port: MessagePort;
89
- }
90
- /**
91
- * Sometimes it might be necessary to run some code inside of the same global scope that the application runs in.
92
- * This hook allows the return of a string that is run as a sloppy-mode script on startup.
93
- *
94
- * @param context Information to assist the preload code
95
- * @return Code to run before application startup
96
- */
97
- type GlobalPreloadHook = (context: GlobalPreloadContext) => string;
98
- interface ResolveHookContext {
99
- /**
100
- * Export conditions of the relevant `package.json`
101
- */
102
- conditions: string[];
103
- /**
104
- * An object whose key-value pairs represent the assertions for the module to import
105
- */
106
- importAssertions: ImportAssertions;
107
- /**
108
- * The module importing this one, or undefined if this is the Node.js entry point
109
- */
110
- parentURL: string | undefined;
111
- }
112
- interface ResolveFnOutput {
113
- /**
114
- * A hint to the load hook (it might be ignored)
115
- */
116
- format?: ModuleFormat | null | undefined;
117
- /**
118
- * The import assertions to use when caching the module (optional; if excluded the input will be used)
119
- */
120
- importAssertions?: ImportAssertions | undefined;
121
- /**
122
- * A signal that this hook intends to terminate the chain of `resolve` hooks.
123
- * @default false
124
- */
125
- shortCircuit?: boolean | undefined;
126
- /**
127
- * The absolute URL to which this input resolves
128
- */
129
- url: string;
130
- }
131
- /**
132
- * The `resolve` hook chain is responsible for resolving file URL for a given module specifier and parent URL, and optionally its format (such as `'module'`) as a hint to the `load` hook.
133
- * If a format is specified, the load hook is ultimately responsible for providing the final `format` value (and it is free to ignore the hint provided by `resolve`);
134
- * if `resolve` provides a format, a custom `load` hook is required even if only to pass the value to the Node.js default `load` hook.
135
- *
136
- * @param specifier The specified URL path of the module to be resolved
137
- * @param context
138
- * @param nextResolve The subsequent `resolve` hook in the chain, or the Node.js default `resolve` hook after the last user-supplied resolve hook
139
- */
140
- type ResolveHook = (
141
- specifier: string,
142
- context: ResolveHookContext,
143
- nextResolve: (
144
- specifier: string,
145
- context?: ResolveHookContext,
146
- ) => ResolveFnOutput | Promise<ResolveFnOutput>,
147
- ) => ResolveFnOutput | Promise<ResolveFnOutput>;
148
- interface LoadHookContext {
149
- /**
150
- * Export conditions of the relevant `package.json`
151
- */
152
- conditions: string[];
153
- /**
154
- * The format optionally supplied by the `resolve` hook chain
155
- */
156
- format: ModuleFormat;
157
- /**
158
- * An object whose key-value pairs represent the assertions for the module to import
159
- */
160
- importAssertions: ImportAssertions;
161
- }
162
- interface LoadFnOutput {
163
- format: ModuleFormat;
164
- /**
165
- * A signal that this hook intends to terminate the chain of `resolve` hooks.
166
- * @default false
167
- */
168
- shortCircuit?: boolean | undefined;
169
- /**
170
- * The source for Node.js to evaluate
171
- */
172
- source?: ModuleSource;
173
- }
174
- /**
175
- * The `load` hook provides a way to define a custom method of determining how a URL should be interpreted, retrieved, and parsed.
176
- * It is also in charge of validating the import assertion.
177
- *
178
- * @param url The URL/path of the module to be loaded
179
- * @param context Metadata about the module
180
- * @param nextLoad The subsequent `load` hook in the chain, or the Node.js default `load` hook after the last user-supplied `load` hook
181
- */
182
- type LoadHook = (
183
- url: string,
184
- context: LoadHookContext,
185
- nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>,
186
- ) => LoadFnOutput | Promise<LoadFnOutput>;
187
- }
188
- interface Module extends NodeModule {}
189
- class Module {
190
- static runMain(): void;
191
- static wrap(code: string): string;
192
- static createRequire(path: string | URL): NodeRequire;
193
- static builtinModules: string[];
194
- static isBuiltin(moduleName: string): boolean;
195
- static Module: typeof Module;
196
- constructor(id: string, parent?: Module);
197
- }
198
- global {
199
- interface ImportMeta {
200
- url: string;
201
- /**
202
- * @experimental
203
- * This feature is only available with the `--experimental-import-meta-resolve`
204
- * command flag enabled.
205
- *
206
- * Provides a module-relative resolution function scoped to each module, returning
207
- * the URL string.
208
- *
209
- * @param specified The module specifier to resolve relative to `parent`.
210
- * @param parent The absolute parent module URL to resolve from. If none
211
- * is specified, the value of `import.meta.url` is used as the default.
212
- */
213
- resolve?(specified: string, parent?: string | URL): Promise<string>;
214
- }
215
- }
216
- export = Module;
217
- }
218
- declare module "node:module" {
219
- import module = require("module");
220
- export = module;
221
- }