@types/node 22.15.21 → 22.18.10
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.
- node v22.18/README.md +15 -0
- node/assert.d.ts → node v22.18/assert.d.ts +19 -0
- node/buffer.d.ts → node v22.18/buffer.d.ts +6 -2
- node/child_process.d.ts → node v22.18/child_process.d.ts +41 -131
- node/cluster.d.ts → node v22.18/cluster.d.ts +3 -4
- node/compatibility/disposable.d.ts → node v22.18/compatibility/disposable.d.ts +0 -2
- node/compatibility/indexable.d.ts → node v22.18/compatibility/indexable.d.ts +0 -3
- node/compatibility/iterators.d.ts → node v22.18/compatibility/iterators.d.ts +0 -1
- node/crypto.d.ts → node v22.18/crypto.d.ts +52 -36
- node/diagnostics_channel.d.ts → node v22.18/diagnostics_channel.d.ts +17 -12
- node/dns/promises.d.ts → node v22.18/dns/promises.d.ts +36 -9
- node/dns.d.ts → node v22.18/dns.d.ts +74 -21
- node/events.d.ts → node v22.18/events.d.ts +80 -35
- node/fs/promises.d.ts → node v22.18/fs/promises.d.ts +44 -39
- node/fs.d.ts → node v22.18/fs.d.ts +67 -56
- node v22.18/globals.d.ts +172 -0
- node/http.d.ts → node v22.18/http.d.ts +71 -10
- node/http2.d.ts → node v22.18/http2.d.ts +85 -5
- node/https.d.ts → node v22.18/https.d.ts +14 -12
- node/index.d.ts → node v22.18/index.d.ts +7 -3
- node/inspector.d.ts → node v22.18/inspector.generated.d.ts +219 -10
- node/module.d.ts → node v22.18/module.d.ts +136 -17
- node/net.d.ts → node v22.18/net.d.ts +5 -5
- node/os.d.ts → node v22.18/os.d.ts +13 -3
- node/package.json → node v22.18/package.json +3 -83
- node/perf_hooks.d.ts → node v22.18/perf_hooks.d.ts +8 -10
- node/process.d.ts → node v22.18/process.d.ts +10 -23
- node/readline/promises.d.ts → node v22.18/readline/promises.d.ts +1 -2
- node/repl.d.ts → node v22.18/repl.d.ts +3 -5
- node/sqlite.d.ts → node v22.18/sqlite.d.ts +207 -0
- node/stream/web.d.ts → node v22.18/stream/web.d.ts +8 -0
- node/stream.d.ts → node v22.18/stream.d.ts +34 -32
- node v22.18/test.d.ts +2162 -0
- node/tls.d.ts → node v22.18/tls.d.ts +2 -2
- node/ts5.6/index.d.ts → node v22.18/ts5.6/index.d.ts +7 -3
- node/url.d.ts → node v22.18/url.d.ts +12 -3
- node/util.d.ts → node v22.18/util.d.ts +20 -5
- node/v8.d.ts → node v22.18/v8.d.ts +62 -32
- node/vm.d.ts → node v22.18/vm.d.ts +62 -54
- node v22.18/web-globals/abortcontroller.d.ts +34 -0
- node v22.18/web-globals/domexception.d.ts +68 -0
- node v22.18/web-globals/events.d.ts +97 -0
- node v22.18/web-globals/fetch.d.ts +46 -0
- node v22.18/web-globals/navigator.d.ts +22 -0
- node v22.18/web-globals/storage.d.ts +24 -0
- node/worker_threads.d.ts → node v22.18/worker_threads.d.ts +105 -74
- node/zlib.d.ts → node v22.18/zlib.d.ts +8 -2
- node/README.md +0 -15
- node/dom-events.d.ts +0 -124
- node/globals.d.ts +0 -371
- node/test.d.ts +0 -2280
- {node → node v22.18}/LICENSE +0 -0
- {node → node v22.18}/assert/strict.d.ts +0 -0
- node/async_hooks.d.ts → node v22.18/async_hooks.d.ts +1 -1
- {node → node v22.18}/buffer.buffer.d.ts +0 -0
- {node → node v22.18}/compatibility/index.d.ts +0 -0
- {node → node v22.18}/console.d.ts +0 -0
- {node → node v22.18}/constants.d.ts +0 -0
- {node → node v22.18}/dgram.d.ts +0 -0
- {node → node v22.18}/domain.d.ts +0 -0
- {node → node v22.18}/globals.typedarray.d.ts +0 -0
- {node → node v22.18}/path.d.ts +0 -0
- {node → node v22.18}/punycode.d.ts +0 -0
- {node → node v22.18}/querystring.d.ts +0 -0
- {node → node v22.18}/readline.d.ts +0 -0
- {node → node v22.18}/sea.d.ts +0 -0
- {node → node v22.18}/stream/consumers.d.ts +0 -0
- {node → node v22.18}/stream/promises.d.ts +0 -0
- {node → node v22.18}/string_decoder.d.ts +0 -0
- {node → node v22.18}/timers/promises.d.ts +0 -0
- {node → node v22.18}/timers.d.ts +0 -0
- {node → node v22.18}/trace_events.d.ts +0 -0
- {node → node v22.18}/ts5.6/buffer.buffer.d.ts +0 -0
- {node → node v22.18}/ts5.6/globals.typedarray.d.ts +0 -0
- {node → node v22.18}/tty.d.ts +0 -0
- {node → node v22.18}/wasi.d.ts +0 -0
|
@@ -225,12 +225,12 @@ declare module "module" {
|
|
|
225
225
|
* See [load hook](https://nodejs.org/docs/latest-v22.x/api/module.html#loadurl-context-nextload).
|
|
226
226
|
* @default undefined
|
|
227
227
|
*/
|
|
228
|
-
load?:
|
|
228
|
+
load?: LoadHookSync | undefined;
|
|
229
229
|
/**
|
|
230
230
|
* See [resolve hook](https://nodejs.org/docs/latest-v22.x/api/module.html#resolvespecifier-context-nextresolve).
|
|
231
231
|
* @default undefined
|
|
232
232
|
*/
|
|
233
|
-
resolve?:
|
|
233
|
+
resolve?: ResolveHookSync | undefined;
|
|
234
234
|
}
|
|
235
235
|
interface ModuleHooks {
|
|
236
236
|
/**
|
|
@@ -429,6 +429,14 @@ declare module "module" {
|
|
|
429
429
|
context?: Partial<ResolveHookContext>,
|
|
430
430
|
) => ResolveFnOutput | Promise<ResolveFnOutput>,
|
|
431
431
|
) => ResolveFnOutput | Promise<ResolveFnOutput>;
|
|
432
|
+
type ResolveHookSync = (
|
|
433
|
+
specifier: string,
|
|
434
|
+
context: ResolveHookContext,
|
|
435
|
+
nextResolve: (
|
|
436
|
+
specifier: string,
|
|
437
|
+
context?: Partial<ResolveHookContext>,
|
|
438
|
+
) => ResolveFnOutput,
|
|
439
|
+
) => ResolveFnOutput;
|
|
432
440
|
interface LoadHookContext {
|
|
433
441
|
/**
|
|
434
442
|
* Export conditions of the relevant `package.json`
|
|
@@ -444,7 +452,7 @@ declare module "module" {
|
|
|
444
452
|
importAttributes: ImportAttributes;
|
|
445
453
|
}
|
|
446
454
|
interface LoadFnOutput {
|
|
447
|
-
format:
|
|
455
|
+
format: string | null | undefined;
|
|
448
456
|
/**
|
|
449
457
|
* A signal that this hook intends to terminate the chain of `resolve` hooks.
|
|
450
458
|
* @default false
|
|
@@ -468,6 +476,34 @@ declare module "module" {
|
|
|
468
476
|
context?: Partial<LoadHookContext>,
|
|
469
477
|
) => LoadFnOutput | Promise<LoadFnOutput>,
|
|
470
478
|
) => LoadFnOutput | Promise<LoadFnOutput>;
|
|
479
|
+
type LoadHookSync = (
|
|
480
|
+
url: string,
|
|
481
|
+
context: LoadHookContext,
|
|
482
|
+
nextLoad: (
|
|
483
|
+
url: string,
|
|
484
|
+
context?: Partial<LoadHookContext>,
|
|
485
|
+
) => LoadFnOutput,
|
|
486
|
+
) => LoadFnOutput;
|
|
487
|
+
interface SourceMapsSupport {
|
|
488
|
+
/**
|
|
489
|
+
* If the source maps support is enabled
|
|
490
|
+
*/
|
|
491
|
+
enabled: boolean;
|
|
492
|
+
/**
|
|
493
|
+
* If the support is enabled for files in `node_modules`.
|
|
494
|
+
*/
|
|
495
|
+
nodeModules: boolean;
|
|
496
|
+
/**
|
|
497
|
+
* If the support is enabled for generated code from `eval` or `new Function`.
|
|
498
|
+
*/
|
|
499
|
+
generatedCode: boolean;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* This method returns whether the [Source Map v3](https://tc39.es/ecma426/) support for stack
|
|
503
|
+
* traces is enabled.
|
|
504
|
+
* @since v22.14.0
|
|
505
|
+
*/
|
|
506
|
+
function getSourceMapsSupport(): SourceMapsSupport;
|
|
471
507
|
/**
|
|
472
508
|
* `path` is the resolved path for the file for which a corresponding source map
|
|
473
509
|
* should be fetched.
|
|
@@ -475,6 +511,33 @@ declare module "module" {
|
|
|
475
511
|
* @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise.
|
|
476
512
|
*/
|
|
477
513
|
function findSourceMap(path: string): SourceMap | undefined;
|
|
514
|
+
interface SetSourceMapsSupportOptions {
|
|
515
|
+
/**
|
|
516
|
+
* If enabling the support for files in `node_modules`.
|
|
517
|
+
* @default false
|
|
518
|
+
*/
|
|
519
|
+
nodeModules?: boolean | undefined;
|
|
520
|
+
/**
|
|
521
|
+
* If enabling the support for generated code from `eval` or `new Function`.
|
|
522
|
+
* @default false
|
|
523
|
+
*/
|
|
524
|
+
generatedCode?: boolean | undefined;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* This function enables or disables the [Source Map v3](https://tc39.es/ecma426/) support for
|
|
528
|
+
* stack traces.
|
|
529
|
+
*
|
|
530
|
+
* It provides same features as launching Node.js process with commandline options
|
|
531
|
+
* `--enable-source-maps`, with additional options to alter the support for files
|
|
532
|
+
* in `node_modules` or generated codes.
|
|
533
|
+
*
|
|
534
|
+
* Only source maps in JavaScript files that are loaded after source maps has been
|
|
535
|
+
* enabled will be parsed and loaded. Preferably, use the commandline options
|
|
536
|
+
* `--enable-source-maps` to avoid losing track of source maps of modules loaded
|
|
537
|
+
* before this API call.
|
|
538
|
+
* @since v22.14.0
|
|
539
|
+
*/
|
|
540
|
+
function setSourceMapsSupport(enabled: boolean, options?: SetSourceMapsSupportOptions): void;
|
|
478
541
|
interface SourceMapConstructorOptions {
|
|
479
542
|
/**
|
|
480
543
|
* @since v21.0.0, v20.5.0
|
|
@@ -560,34 +623,91 @@ declare module "module" {
|
|
|
560
623
|
global {
|
|
561
624
|
interface ImportMeta {
|
|
562
625
|
/**
|
|
563
|
-
* The directory name of the current module.
|
|
564
|
-
*
|
|
626
|
+
* The directory name of the current module.
|
|
627
|
+
*
|
|
628
|
+
* This is the same as the `path.dirname()` of the `import.meta.filename`.
|
|
629
|
+
*
|
|
630
|
+
* > **Caveat**: only present on `file:` modules.
|
|
631
|
+
* @since v21.2.0, v20.11.0
|
|
565
632
|
*/
|
|
566
633
|
dirname: string;
|
|
567
634
|
/**
|
|
568
|
-
* The full absolute path and filename of the current module, with
|
|
635
|
+
* The full absolute path and filename of the current module, with
|
|
636
|
+
* symlinks resolved.
|
|
637
|
+
*
|
|
569
638
|
* This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
|
|
570
|
-
*
|
|
639
|
+
*
|
|
640
|
+
* > **Caveat** only local modules support this property. Modules not using the
|
|
641
|
+
* > `file:` protocol will not provide it.
|
|
642
|
+
* @since v21.2.0, v20.11.0
|
|
571
643
|
*/
|
|
572
644
|
filename: string;
|
|
573
645
|
/**
|
|
574
646
|
* The absolute `file:` URL of the module.
|
|
647
|
+
*
|
|
648
|
+
* This is defined exactly the same as it is in browsers providing the URL of the
|
|
649
|
+
* current module file.
|
|
650
|
+
*
|
|
651
|
+
* This enables useful patterns such as relative file loading:
|
|
652
|
+
*
|
|
653
|
+
* ```js
|
|
654
|
+
* import { readFileSync } from 'node:fs';
|
|
655
|
+
* const buffer = readFileSync(new URL('./data.proto', import.meta.url));
|
|
656
|
+
* ```
|
|
575
657
|
*/
|
|
576
658
|
url: string;
|
|
577
659
|
/**
|
|
578
|
-
*
|
|
579
|
-
* the URL string.
|
|
660
|
+
* `import.meta.resolve` is a module-relative resolution function scoped to
|
|
661
|
+
* each module, returning the URL string.
|
|
662
|
+
*
|
|
663
|
+
* ```js
|
|
664
|
+
* const dependencyAsset = import.meta.resolve('component-lib/asset.css');
|
|
665
|
+
* // file:///app/node_modules/component-lib/asset.css
|
|
666
|
+
* import.meta.resolve('./dep.js');
|
|
667
|
+
* // file:///app/dep.js
|
|
668
|
+
* ```
|
|
669
|
+
*
|
|
670
|
+
* All features of the Node.js module resolution are supported. Dependency
|
|
671
|
+
* resolutions are subject to the permitted exports resolutions within the package.
|
|
672
|
+
*
|
|
673
|
+
* **Caveats**:
|
|
674
|
+
*
|
|
675
|
+
* * This can result in synchronous file-system operations, which
|
|
676
|
+
* can impact performance similarly to `require.resolve`.
|
|
677
|
+
* * This feature is not available within custom loaders (it would
|
|
678
|
+
* create a deadlock).
|
|
679
|
+
* @since v13.9.0, v12.16.0
|
|
680
|
+
* @param specifier The module specifier to resolve relative to the
|
|
681
|
+
* current module.
|
|
682
|
+
* @param parent An optional absolute parent module URL to resolve from.
|
|
683
|
+
* **Default:** `import.meta.url`
|
|
684
|
+
* @returns The absolute URL string that the specifier would resolve to.
|
|
685
|
+
*/
|
|
686
|
+
resolve(specifier: string, parent?: string | URL): string;
|
|
687
|
+
/**
|
|
688
|
+
* `true` when the current module is the entry point of the current process; `false` otherwise.
|
|
689
|
+
*
|
|
690
|
+
* Equivalent to `require.main === module` in CommonJS.
|
|
691
|
+
*
|
|
692
|
+
* Analogous to Python's `__name__ == "__main__"`.
|
|
580
693
|
*
|
|
581
|
-
*
|
|
582
|
-
*
|
|
694
|
+
* ```js
|
|
695
|
+
* export function foo() {
|
|
696
|
+
* return 'Hello, world';
|
|
697
|
+
* }
|
|
583
698
|
*
|
|
584
|
-
*
|
|
699
|
+
* function main() {
|
|
700
|
+
* const message = foo();
|
|
701
|
+
* console.log(message);
|
|
702
|
+
* }
|
|
585
703
|
*
|
|
586
|
-
*
|
|
587
|
-
*
|
|
588
|
-
*
|
|
704
|
+
* if (import.meta.main) main();
|
|
705
|
+
* // `foo` can be imported from another module without possible side-effects from `main`
|
|
706
|
+
* ```
|
|
707
|
+
* @since v22.18.0
|
|
708
|
+
* @experimental
|
|
589
709
|
*/
|
|
590
|
-
|
|
710
|
+
main: boolean;
|
|
591
711
|
}
|
|
592
712
|
namespace NodeJS {
|
|
593
713
|
interface Module {
|
|
@@ -756,7 +876,6 @@ declare module "module" {
|
|
|
756
876
|
*/
|
|
757
877
|
var require: NodeJS.Require;
|
|
758
878
|
// Global-scope aliases for backwards compatibility with @types/node <13.0.x
|
|
759
|
-
// TODO: consider removing in a future major version update
|
|
760
879
|
/** @deprecated Use `NodeJS.Module` instead. */
|
|
761
880
|
interface NodeModule extends NodeJS.Module {}
|
|
762
881
|
/** @deprecated Use `NodeJS.Require` instead. */
|
|
@@ -32,7 +32,7 @@ declare module "net" {
|
|
|
32
32
|
onread?: OnReadOpts | undefined;
|
|
33
33
|
readable?: boolean | undefined;
|
|
34
34
|
writable?: boolean | undefined;
|
|
35
|
-
signal?: AbortSignal;
|
|
35
|
+
signal?: AbortSignal | undefined;
|
|
36
36
|
}
|
|
37
37
|
interface OnReadOpts {
|
|
38
38
|
buffer: Uint8Array | (() => Uint8Array);
|
|
@@ -324,25 +324,25 @@ declare module "net" {
|
|
|
324
324
|
* the socket is destroyed (for example, if the client disconnected).
|
|
325
325
|
* @since v0.5.10
|
|
326
326
|
*/
|
|
327
|
-
readonly remoteAddress
|
|
327
|
+
readonly remoteAddress: string | undefined;
|
|
328
328
|
/**
|
|
329
329
|
* The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if
|
|
330
330
|
* the socket is destroyed (for example, if the client disconnected).
|
|
331
331
|
* @since v0.11.14
|
|
332
332
|
*/
|
|
333
|
-
readonly remoteFamily
|
|
333
|
+
readonly remoteFamily: string | undefined;
|
|
334
334
|
/**
|
|
335
335
|
* The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
|
|
336
336
|
* the socket is destroyed (for example, if the client disconnected).
|
|
337
337
|
* @since v0.5.10
|
|
338
338
|
*/
|
|
339
|
-
readonly remotePort
|
|
339
|
+
readonly remotePort: number | undefined;
|
|
340
340
|
/**
|
|
341
341
|
* The socket timeout in milliseconds as set by `socket.setTimeout()`.
|
|
342
342
|
* It is `undefined` if a timeout has not been set.
|
|
343
343
|
* @since v10.7.0
|
|
344
344
|
*/
|
|
345
|
-
readonly timeout?: number
|
|
345
|
+
readonly timeout?: number;
|
|
346
346
|
/**
|
|
347
347
|
* Half-closes the socket. i.e., it sends a FIN packet. It is possible the
|
|
348
348
|
* server will still send some data.
|
|
@@ -30,10 +30,10 @@ declare module "os" {
|
|
|
30
30
|
mac: string;
|
|
31
31
|
internal: boolean;
|
|
32
32
|
cidr: string | null;
|
|
33
|
+
scopeid?: number;
|
|
33
34
|
}
|
|
34
35
|
interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
|
|
35
36
|
family: "IPv4";
|
|
36
|
-
scopeid?: undefined;
|
|
37
37
|
}
|
|
38
38
|
interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
|
|
39
39
|
family: "IPv6";
|
|
@@ -231,6 +231,15 @@ declare module "os" {
|
|
|
231
231
|
* @since v2.3.0
|
|
232
232
|
*/
|
|
233
233
|
function homedir(): string;
|
|
234
|
+
interface UserInfoOptions {
|
|
235
|
+
encoding?: BufferEncoding | "buffer" | undefined;
|
|
236
|
+
}
|
|
237
|
+
interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions {
|
|
238
|
+
encoding: "buffer";
|
|
239
|
+
}
|
|
240
|
+
interface UserInfoOptionsWithStringEncoding extends UserInfoOptions {
|
|
241
|
+
encoding?: BufferEncoding | undefined;
|
|
242
|
+
}
|
|
234
243
|
/**
|
|
235
244
|
* Returns information about the currently effective user. On POSIX platforms,
|
|
236
245
|
* this is typically a subset of the password file. The returned object includes
|
|
@@ -244,8 +253,9 @@ declare module "os" {
|
|
|
244
253
|
* Throws a [`SystemError`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`.
|
|
245
254
|
* @since v6.0.0
|
|
246
255
|
*/
|
|
247
|
-
function userInfo(options:
|
|
248
|
-
function userInfo(options?:
|
|
256
|
+
function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo<Buffer>;
|
|
257
|
+
function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo<string>;
|
|
258
|
+
function userInfo(options: UserInfoOptions): UserInfo<string | Buffer>;
|
|
249
259
|
type SignalConstants = {
|
|
250
260
|
[key in NodeJS.Signals]: number;
|
|
251
261
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.18.10",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
"githubUsername": "jkomyno",
|
|
16
16
|
"url": "https://github.com/jkomyno"
|
|
17
17
|
},
|
|
18
|
-
{
|
|
19
|
-
"name": "Alvis HT Tang",
|
|
20
|
-
"githubUsername": "alvis",
|
|
21
|
-
"url": "https://github.com/alvis"
|
|
22
|
-
},
|
|
23
18
|
{
|
|
24
19
|
"name": "Andrew Makarov",
|
|
25
20
|
"githubUsername": "r3nya",
|
|
@@ -30,56 +25,11 @@
|
|
|
30
25
|
"githubUsername": "btoueg",
|
|
31
26
|
"url": "https://github.com/btoueg"
|
|
32
27
|
},
|
|
33
|
-
{
|
|
34
|
-
"name": "Chigozirim C.",
|
|
35
|
-
"githubUsername": "smac89",
|
|
36
|
-
"url": "https://github.com/smac89"
|
|
37
|
-
},
|
|
38
28
|
{
|
|
39
29
|
"name": "David Junger",
|
|
40
30
|
"githubUsername": "touffy",
|
|
41
31
|
"url": "https://github.com/touffy"
|
|
42
32
|
},
|
|
43
|
-
{
|
|
44
|
-
"name": "Deividas Bakanas",
|
|
45
|
-
"githubUsername": "DeividasBakanas",
|
|
46
|
-
"url": "https://github.com/DeividasBakanas"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "Eugene Y. Q. Shen",
|
|
50
|
-
"githubUsername": "eyqs",
|
|
51
|
-
"url": "https://github.com/eyqs"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "Hannes Magnusson",
|
|
55
|
-
"githubUsername": "Hannes-Magnusson-CK",
|
|
56
|
-
"url": "https://github.com/Hannes-Magnusson-CK"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "Huw",
|
|
60
|
-
"githubUsername": "hoo29",
|
|
61
|
-
"url": "https://github.com/hoo29"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "Kelvin Jin",
|
|
65
|
-
"githubUsername": "kjin",
|
|
66
|
-
"url": "https://github.com/kjin"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "Klaus Meinhardt",
|
|
70
|
-
"githubUsername": "ajafff",
|
|
71
|
-
"url": "https://github.com/ajafff"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "Lishude",
|
|
75
|
-
"githubUsername": "islishude",
|
|
76
|
-
"url": "https://github.com/islishude"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "Mariusz Wiktorczyk",
|
|
80
|
-
"githubUsername": "mwiktorczyk",
|
|
81
|
-
"url": "https://github.com/mwiktorczyk"
|
|
82
|
-
},
|
|
83
33
|
{
|
|
84
34
|
"name": "Mohsen Azimi",
|
|
85
35
|
"githubUsername": "mohsen1",
|
|
@@ -90,46 +40,16 @@
|
|
|
90
40
|
"githubUsername": "galkin",
|
|
91
41
|
"url": "https://github.com/galkin"
|
|
92
42
|
},
|
|
93
|
-
{
|
|
94
|
-
"name": "Parambir Singh",
|
|
95
|
-
"githubUsername": "parambirs",
|
|
96
|
-
"url": "https://github.com/parambirs"
|
|
97
|
-
},
|
|
98
43
|
{
|
|
99
44
|
"name": "Sebastian Silbermann",
|
|
100
45
|
"githubUsername": "eps1lon",
|
|
101
46
|
"url": "https://github.com/eps1lon"
|
|
102
47
|
},
|
|
103
|
-
{
|
|
104
|
-
"name": "Thomas den Hollander",
|
|
105
|
-
"githubUsername": "ThomasdenH",
|
|
106
|
-
"url": "https://github.com/ThomasdenH"
|
|
107
|
-
},
|
|
108
48
|
{
|
|
109
49
|
"name": "Wilco Bakker",
|
|
110
50
|
"githubUsername": "WilcoBakker",
|
|
111
51
|
"url": "https://github.com/WilcoBakker"
|
|
112
52
|
},
|
|
113
|
-
{
|
|
114
|
-
"name": "wwwy3y3",
|
|
115
|
-
"githubUsername": "wwwy3y3",
|
|
116
|
-
"url": "https://github.com/wwwy3y3"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "Samuel Ainsworth",
|
|
120
|
-
"githubUsername": "samuela",
|
|
121
|
-
"url": "https://github.com/samuela"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "Kyle Uehlein",
|
|
125
|
-
"githubUsername": "kuehlein",
|
|
126
|
-
"url": "https://github.com/kuehlein"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"name": "Thanik Bhongbhibhat",
|
|
130
|
-
"githubUsername": "bhongy",
|
|
131
|
-
"url": "https://github.com/bhongy"
|
|
132
|
-
},
|
|
133
53
|
{
|
|
134
54
|
"name": "Marcin Kopacz",
|
|
135
55
|
"githubUsername": "chyzwar",
|
|
@@ -220,6 +140,6 @@
|
|
|
220
140
|
"undici-types": "~6.21.0"
|
|
221
141
|
},
|
|
222
142
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
224
|
-
"typeScriptVersion": "5.
|
|
143
|
+
"typesPublisherContentHash": "e5707cd0627075030e43d45d8ff396de8a8bb1b71fd581233c7a8febe823657c",
|
|
144
|
+
"typeScriptVersion": "5.2"
|
|
225
145
|
}
|
|
@@ -48,13 +48,13 @@ declare module "perf_hooks" {
|
|
|
48
48
|
* the type of garbage collection operation that occurred.
|
|
49
49
|
* See perf_hooks.constants for valid values.
|
|
50
50
|
*/
|
|
51
|
-
readonly kind
|
|
51
|
+
readonly kind: number;
|
|
52
52
|
/**
|
|
53
53
|
* When `performanceEntry.entryType` is equal to 'gc', the `performance.flags`
|
|
54
54
|
* property contains additional information about garbage collection operation.
|
|
55
55
|
* See perf_hooks.constants for valid values.
|
|
56
56
|
*/
|
|
57
|
-
readonly flags
|
|
57
|
+
readonly flags: number;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* The constructor of this class is not exposed to users directly.
|
|
@@ -92,11 +92,6 @@ declare module "perf_hooks" {
|
|
|
92
92
|
* @since v8.5.0
|
|
93
93
|
*/
|
|
94
94
|
readonly entryType: EntryType;
|
|
95
|
-
/**
|
|
96
|
-
* Additional detail specific to the `entryType`.
|
|
97
|
-
* @since v16.0.0
|
|
98
|
-
*/
|
|
99
|
-
readonly detail?: NodeGCPerformanceDetail | unknown | undefined; // TODO: Narrow this based on entry type.
|
|
100
95
|
toJSON(): any;
|
|
101
96
|
}
|
|
102
97
|
/**
|
|
@@ -104,6 +99,7 @@ declare module "perf_hooks" {
|
|
|
104
99
|
* @since v18.2.0, v16.17.0
|
|
105
100
|
*/
|
|
106
101
|
class PerformanceMark extends PerformanceEntry {
|
|
102
|
+
readonly detail: any;
|
|
107
103
|
readonly duration: 0;
|
|
108
104
|
readonly entryType: "mark";
|
|
109
105
|
}
|
|
@@ -114,6 +110,7 @@ declare module "perf_hooks" {
|
|
|
114
110
|
* @since v18.2.0, v16.17.0
|
|
115
111
|
*/
|
|
116
112
|
class PerformanceMeasure extends PerformanceEntry {
|
|
113
|
+
readonly detail: any;
|
|
117
114
|
readonly entryType: "measure";
|
|
118
115
|
}
|
|
119
116
|
interface UVMetrics {
|
|
@@ -130,6 +127,7 @@ declare module "perf_hooks" {
|
|
|
130
127
|
*/
|
|
131
128
|
readonly eventsWaiting: number;
|
|
132
129
|
}
|
|
130
|
+
// TODO: PerformanceNodeEntry is missing
|
|
133
131
|
/**
|
|
134
132
|
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
135
133
|
*
|
|
@@ -225,7 +223,7 @@ declare module "perf_hooks" {
|
|
|
225
223
|
/**
|
|
226
224
|
* Additional optional detail to include with the mark.
|
|
227
225
|
*/
|
|
228
|
-
detail?: unknown
|
|
226
|
+
detail?: unknown;
|
|
229
227
|
/**
|
|
230
228
|
* Duration between start and end times.
|
|
231
229
|
*/
|
|
@@ -866,12 +864,12 @@ declare module "perf_hooks" {
|
|
|
866
864
|
* The minimum recordable value. Must be an integer value greater than 0.
|
|
867
865
|
* @default 1
|
|
868
866
|
*/
|
|
869
|
-
|
|
867
|
+
lowest?: number | bigint | undefined;
|
|
870
868
|
/**
|
|
871
869
|
* The maximum recordable value. Must be an integer value greater than min.
|
|
872
870
|
* @default Number.MAX_SAFE_INTEGER
|
|
873
871
|
*/
|
|
874
|
-
|
|
872
|
+
highest?: number | bigint | undefined;
|
|
875
873
|
/**
|
|
876
874
|
* The number of accuracy digits. Must be a number between 1 and 5.
|
|
877
875
|
* @default 3
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare module "process" {
|
|
2
|
+
import { Control, MessageOptions } from "node:child_process";
|
|
2
3
|
import * as tty from "node:tty";
|
|
3
4
|
import { Worker } from "node:worker_threads";
|
|
4
5
|
|
|
@@ -231,8 +232,9 @@ declare module "process" {
|
|
|
231
232
|
*/
|
|
232
233
|
readonly tls_sni: boolean;
|
|
233
234
|
/**
|
|
234
|
-
* A value that is `"strip"`
|
|
235
|
-
* `"transform"` if Node.js is run with `--experimental-transform-types`, and `false`
|
|
235
|
+
* A value that is `"strip"` by default,
|
|
236
|
+
* `"transform"` if Node.js is run with `--experimental-transform-types`, and `false` if
|
|
237
|
+
* Node.js is run with `--no-experimental-strip-types`.
|
|
236
238
|
* @since v22.10.0
|
|
237
239
|
*/
|
|
238
240
|
readonly typescript: "strip" | "transform" | false;
|
|
@@ -347,7 +349,7 @@ declare module "process" {
|
|
|
347
349
|
/**
|
|
348
350
|
* Can be used to change the default timezone at runtime
|
|
349
351
|
*/
|
|
350
|
-
TZ?: string;
|
|
352
|
+
TZ?: string | undefined;
|
|
351
353
|
}
|
|
352
354
|
interface HRTime {
|
|
353
355
|
/**
|
|
@@ -991,7 +993,7 @@ declare module "process" {
|
|
|
991
993
|
* @since v0.1.13
|
|
992
994
|
* @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
|
|
993
995
|
*/
|
|
994
|
-
exit(code?: number | string | null
|
|
996
|
+
exit(code?: number | string | null): never;
|
|
995
997
|
/**
|
|
996
998
|
* A number which will be the process exit code, when the process either
|
|
997
999
|
* exits gracefully, or is exited via {@link exit} without specifying
|
|
@@ -1002,7 +1004,7 @@ declare module "process" {
|
|
|
1002
1004
|
* @default undefined
|
|
1003
1005
|
* @since v0.11.8
|
|
1004
1006
|
*/
|
|
1005
|
-
exitCode
|
|
1007
|
+
exitCode: number | string | null | undefined;
|
|
1006
1008
|
finalization: {
|
|
1007
1009
|
/**
|
|
1008
1010
|
* This function registers a callback to be called when the process emits the `exit` event if the `ref` object was not garbage collected.
|
|
@@ -1556,7 +1558,7 @@ declare module "process" {
|
|
|
1556
1558
|
* @since v0.1.17
|
|
1557
1559
|
* @deprecated Since v14.0.0 - Use `main` instead.
|
|
1558
1560
|
*/
|
|
1559
|
-
mainModule?: Module
|
|
1561
|
+
mainModule?: Module;
|
|
1560
1562
|
memoryUsage: MemoryUsageFn;
|
|
1561
1563
|
/**
|
|
1562
1564
|
* Gets the amount of memory available to the process (in bytes) based on
|
|
@@ -1566,13 +1568,11 @@ declare module "process" {
|
|
|
1566
1568
|
* See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more
|
|
1567
1569
|
* information.
|
|
1568
1570
|
* @since v19.6.0, v18.15.0
|
|
1569
|
-
* @experimental
|
|
1570
1571
|
*/
|
|
1571
1572
|
constrainedMemory(): number;
|
|
1572
1573
|
/**
|
|
1573
1574
|
* Gets the amount of free memory that is still available to the process (in bytes).
|
|
1574
1575
|
* See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v22.x/api/process.html#processavailablememory) for more information.
|
|
1575
|
-
* @experimental
|
|
1576
1576
|
* @since v20.13.0
|
|
1577
1577
|
*/
|
|
1578
1578
|
availableMemory(): number;
|
|
@@ -1750,18 +1750,7 @@ declare module "process" {
|
|
|
1750
1750
|
* If no IPC channel exists, this property is undefined.
|
|
1751
1751
|
* @since v7.1.0
|
|
1752
1752
|
*/
|
|
1753
|
-
channel?:
|
|
1754
|
-
/**
|
|
1755
|
-
* This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
|
|
1756
|
-
* @since v7.1.0
|
|
1757
|
-
*/
|
|
1758
|
-
ref(): void;
|
|
1759
|
-
/**
|
|
1760
|
-
* This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
|
|
1761
|
-
* @since v7.1.0
|
|
1762
|
-
*/
|
|
1763
|
-
unref(): void;
|
|
1764
|
-
};
|
|
1753
|
+
channel?: Control;
|
|
1765
1754
|
/**
|
|
1766
1755
|
* If Node.js is spawned with an IPC channel, the `process.send()` method can be
|
|
1767
1756
|
* used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
|
|
@@ -1776,9 +1765,7 @@ declare module "process" {
|
|
|
1776
1765
|
send?(
|
|
1777
1766
|
message: any,
|
|
1778
1767
|
sendHandle?: any,
|
|
1779
|
-
options?:
|
|
1780
|
-
keepOpen?: boolean | undefined;
|
|
1781
|
-
},
|
|
1768
|
+
options?: MessageOptions,
|
|
1782
1769
|
callback?: (error: Error | null) => void,
|
|
1783
1770
|
): boolean;
|
|
1784
1771
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since v17.0.0
|
|
3
|
-
* @experimental
|
|
4
3
|
*/
|
|
5
4
|
declare module "readline/promises" {
|
|
6
5
|
import { Abortable } from "node:events";
|
|
@@ -65,7 +64,7 @@ declare module "readline/promises" {
|
|
|
65
64
|
constructor(
|
|
66
65
|
stream: NodeJS.WritableStream,
|
|
67
66
|
options?: {
|
|
68
|
-
autoCommit?: boolean;
|
|
67
|
+
autoCommit?: boolean | undefined;
|
|
69
68
|
},
|
|
70
69
|
);
|
|
71
70
|
/**
|
|
@@ -37,12 +37,10 @@ declare module "repl" {
|
|
|
37
37
|
terminal?: boolean | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* The function to be used when evaluating each given line of input.
|
|
40
|
-
* Default
|
|
40
|
+
* **Default:** an async wrapper for the JavaScript `eval()` function. An `eval` function can
|
|
41
41
|
* error with `repl.Recoverable` to indicate the input was incomplete and prompt for
|
|
42
|
-
* additional lines.
|
|
43
|
-
*
|
|
44
|
-
* @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_default_evaluation
|
|
45
|
-
* @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_custom_evaluation_functions
|
|
42
|
+
* additional lines. See the [custom evaluation functions](https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#custom-evaluation-functions)
|
|
43
|
+
* section for more details.
|
|
46
44
|
*/
|
|
47
45
|
eval?: REPLEval | undefined;
|
|
48
46
|
/**
|