@types/node 20.6.2 → 20.6.4
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/README.md +1 -1
- node/assert/strict.d.ts +4 -4
- node/assert.d.ts +48 -24
- node/async_hooks.d.ts +13 -6
- node/buffer.d.ts +32 -34
- node/child_process.d.ts +262 -122
- node/cluster.d.ts +107 -89
- node/console.d.ts +7 -7
- node/constants.d.ts +12 -11
- node/crypto.d.ts +746 -268
- node/dgram.d.ts +81 -45
- node/diagnostics_channel.d.ts +3 -3
- node/dns/promises.d.ts +28 -25
- node/dns.d.ts +203 -62
- node/dom-events.d.ts +67 -71
- node/domain.d.ts +4 -4
- node/events.d.ts +15 -7
- node/fs/promises.d.ts +102 -73
- node/fs.d.ts +513 -311
- node/globals.d.ts +18 -20
- node/http.d.ts +238 -186
- node/http2.d.ts +628 -376
- node/https.d.ts +221 -112
- node/inspector.d.ts +3 -3
- node/module.d.ts +16 -9
- node/net.d.ts +112 -93
- node/os.d.ts +7 -7
- node/package.json +2 -2
- node/path.d.ts +13 -13
- node/perf_hooks.d.ts +19 -18
- node/process.d.ts +155 -125
- node/punycode.d.ts +3 -3
- node/querystring.d.ts +14 -4
- node/readline/promises.d.ts +12 -7
- node/readline.d.ts +69 -56
- node/repl.d.ts +67 -61
- node/stream/consumers.d.ts +5 -5
- node/stream/promises.d.ts +56 -15
- node/stream/web.d.ts +26 -20
- node/stream.d.ts +361 -228
- node/string_decoder.d.ts +3 -3
- node/test.d.ts +78 -93
- node/timers/promises.d.ts +4 -4
- node/timers.d.ts +23 -8
- node/tls.d.ts +151 -71
- node/trace_events.d.ts +3 -3
- node/ts4.8/assert/strict.d.ts +4 -4
- node/ts4.8/assert.d.ts +48 -24
- node/ts4.8/async_hooks.d.ts +13 -6
- node/ts4.8/buffer.d.ts +32 -34
- node/ts4.8/child_process.d.ts +262 -122
- node/ts4.8/cluster.d.ts +107 -89
- node/ts4.8/console.d.ts +7 -7
- node/ts4.8/constants.d.ts +12 -11
- node/ts4.8/crypto.d.ts +746 -268
- node/ts4.8/dgram.d.ts +81 -45
- node/ts4.8/diagnostics_channel.d.ts +3 -3
- node/ts4.8/dns/promises.d.ts +28 -25
- node/ts4.8/dns.d.ts +203 -62
- node/ts4.8/dom-events.d.ts +67 -71
- node/ts4.8/domain.d.ts +4 -4
- node/ts4.8/events.d.ts +15 -7
- node/ts4.8/fs/promises.d.ts +102 -73
- node/ts4.8/fs.d.ts +513 -311
- node/ts4.8/globals.d.ts +18 -20
- node/ts4.8/http.d.ts +238 -186
- node/ts4.8/http2.d.ts +628 -376
- node/ts4.8/https.d.ts +221 -112
- node/ts4.8/inspector.d.ts +3 -3
- node/ts4.8/module.d.ts +16 -9
- node/ts4.8/net.d.ts +112 -93
- node/ts4.8/os.d.ts +7 -7
- node/ts4.8/path.d.ts +13 -13
- node/ts4.8/perf_hooks.d.ts +19 -18
- node/ts4.8/process.d.ts +155 -125
- node/ts4.8/punycode.d.ts +3 -3
- node/ts4.8/querystring.d.ts +14 -4
- node/ts4.8/readline/promises.d.ts +12 -7
- node/ts4.8/readline.d.ts +69 -56
- node/ts4.8/repl.d.ts +67 -61
- node/ts4.8/stream/consumers.d.ts +5 -5
- node/ts4.8/stream/promises.d.ts +56 -15
- node/ts4.8/stream/web.d.ts +26 -20
- node/ts4.8/stream.d.ts +326 -219
- node/ts4.8/string_decoder.d.ts +3 -3
- node/ts4.8/test.d.ts +78 -93
- node/ts4.8/timers/promises.d.ts +4 -4
- node/ts4.8/timers.d.ts +23 -8
- node/ts4.8/tls.d.ts +151 -71
- node/ts4.8/trace_events.d.ts +3 -3
- node/ts4.8/tty.d.ts +10 -10
- node/ts4.8/url.d.ts +26 -14
- node/ts4.8/util.d.ts +178 -116
- node/ts4.8/v8.d.ts +4 -4
- node/ts4.8/vm.d.ts +52 -46
- node/ts4.8/wasi.d.ts +3 -3
- node/ts4.8/worker_threads.d.ts +81 -84
- node/ts4.8/zlib.d.ts +9 -9
- node/tty.d.ts +10 -10
- node/url.d.ts +26 -14
- node/util.d.ts +178 -116
- node/v8.d.ts +4 -4
- node/vm.d.ts +52 -46
- node/wasi.d.ts +3 -3
- node/worker_threads.d.ts +81 -84
- node/zlib.d.ts +9 -9
node/fs.d.ts
CHANGED
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
* forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
|
|
19
19
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/fs.js)
|
|
20
20
|
*/
|
|
21
|
-
declare module
|
|
22
|
-
import * as stream from
|
|
23
|
-
import { Abortable, EventEmitter } from
|
|
24
|
-
import { URL } from
|
|
25
|
-
import * as promises from
|
|
21
|
+
declare module "fs" {
|
|
22
|
+
import * as stream from "node:stream";
|
|
23
|
+
import { Abortable, EventEmitter } from "node:events";
|
|
24
|
+
import { URL } from "node:url";
|
|
25
|
+
import * as promises from "node:fs/promises";
|
|
26
26
|
export { promises };
|
|
27
27
|
/**
|
|
28
28
|
* Valid types for path values in "fs".
|
|
@@ -32,10 +32,10 @@ declare module 'node:fs' {
|
|
|
32
32
|
export type TimeLike = string | number | Date;
|
|
33
33
|
export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void;
|
|
34
34
|
export type BufferEncodingOption =
|
|
35
|
-
|
|
|
35
|
+
| "buffer"
|
|
36
36
|
| {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
encoding: "buffer";
|
|
38
|
+
};
|
|
39
39
|
export interface ObjectEncodingOptions {
|
|
40
40
|
encoding?: BufferEncoding | null | undefined;
|
|
41
41
|
}
|
|
@@ -360,25 +360,25 @@ declare module 'node:fs' {
|
|
|
360
360
|
* 2. error
|
|
361
361
|
*/
|
|
362
362
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
363
|
-
addListener(event:
|
|
364
|
-
addListener(event:
|
|
365
|
-
addListener(event:
|
|
363
|
+
addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
|
|
364
|
+
addListener(event: "error", listener: (error: Error) => void): this;
|
|
365
|
+
addListener(event: "close", listener: () => void): this;
|
|
366
366
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
367
|
-
on(event:
|
|
368
|
-
on(event:
|
|
369
|
-
on(event:
|
|
367
|
+
on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
|
|
368
|
+
on(event: "error", listener: (error: Error) => void): this;
|
|
369
|
+
on(event: "close", listener: () => void): this;
|
|
370
370
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
371
|
-
once(event:
|
|
372
|
-
once(event:
|
|
373
|
-
once(event:
|
|
371
|
+
once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
|
|
372
|
+
once(event: "error", listener: (error: Error) => void): this;
|
|
373
|
+
once(event: "close", listener: () => void): this;
|
|
374
374
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
375
|
-
prependListener(event:
|
|
376
|
-
prependListener(event:
|
|
377
|
-
prependListener(event:
|
|
375
|
+
prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
|
|
376
|
+
prependListener(event: "error", listener: (error: Error) => void): this;
|
|
377
|
+
prependListener(event: "close", listener: () => void): this;
|
|
378
378
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
379
|
-
prependOnceListener(event:
|
|
380
|
-
prependOnceListener(event:
|
|
381
|
-
prependOnceListener(event:
|
|
379
|
+
prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
|
|
380
|
+
prependOnceListener(event: "error", listener: (error: Error) => void): this;
|
|
381
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
384
|
* Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function.
|
|
@@ -410,55 +410,55 @@ declare module 'node:fs' {
|
|
|
410
410
|
* 2. close
|
|
411
411
|
* 3. ready
|
|
412
412
|
*/
|
|
413
|
-
addListener(event:
|
|
414
|
-
addListener(event:
|
|
415
|
-
addListener(event:
|
|
416
|
-
addListener(event:
|
|
417
|
-
addListener(event:
|
|
418
|
-
addListener(event:
|
|
419
|
-
addListener(event:
|
|
420
|
-
addListener(event:
|
|
421
|
-
addListener(event:
|
|
413
|
+
addListener(event: "close", listener: () => void): this;
|
|
414
|
+
addListener(event: "data", listener: (chunk: Buffer | string) => void): this;
|
|
415
|
+
addListener(event: "end", listener: () => void): this;
|
|
416
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
417
|
+
addListener(event: "open", listener: (fd: number) => void): this;
|
|
418
|
+
addListener(event: "pause", listener: () => void): this;
|
|
419
|
+
addListener(event: "readable", listener: () => void): this;
|
|
420
|
+
addListener(event: "ready", listener: () => void): this;
|
|
421
|
+
addListener(event: "resume", listener: () => void): this;
|
|
422
422
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
423
|
-
on(event:
|
|
424
|
-
on(event:
|
|
425
|
-
on(event:
|
|
426
|
-
on(event:
|
|
427
|
-
on(event:
|
|
428
|
-
on(event:
|
|
429
|
-
on(event:
|
|
430
|
-
on(event:
|
|
431
|
-
on(event:
|
|
423
|
+
on(event: "close", listener: () => void): this;
|
|
424
|
+
on(event: "data", listener: (chunk: Buffer | string) => void): this;
|
|
425
|
+
on(event: "end", listener: () => void): this;
|
|
426
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
427
|
+
on(event: "open", listener: (fd: number) => void): this;
|
|
428
|
+
on(event: "pause", listener: () => void): this;
|
|
429
|
+
on(event: "readable", listener: () => void): this;
|
|
430
|
+
on(event: "ready", listener: () => void): this;
|
|
431
|
+
on(event: "resume", listener: () => void): this;
|
|
432
432
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
433
|
-
once(event:
|
|
434
|
-
once(event:
|
|
435
|
-
once(event:
|
|
436
|
-
once(event:
|
|
437
|
-
once(event:
|
|
438
|
-
once(event:
|
|
439
|
-
once(event:
|
|
440
|
-
once(event:
|
|
441
|
-
once(event:
|
|
433
|
+
once(event: "close", listener: () => void): this;
|
|
434
|
+
once(event: "data", listener: (chunk: Buffer | string) => void): this;
|
|
435
|
+
once(event: "end", listener: () => void): this;
|
|
436
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
437
|
+
once(event: "open", listener: (fd: number) => void): this;
|
|
438
|
+
once(event: "pause", listener: () => void): this;
|
|
439
|
+
once(event: "readable", listener: () => void): this;
|
|
440
|
+
once(event: "ready", listener: () => void): this;
|
|
441
|
+
once(event: "resume", listener: () => void): this;
|
|
442
442
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
443
|
-
prependListener(event:
|
|
444
|
-
prependListener(event:
|
|
445
|
-
prependListener(event:
|
|
446
|
-
prependListener(event:
|
|
447
|
-
prependListener(event:
|
|
448
|
-
prependListener(event:
|
|
449
|
-
prependListener(event:
|
|
450
|
-
prependListener(event:
|
|
451
|
-
prependListener(event:
|
|
443
|
+
prependListener(event: "close", listener: () => void): this;
|
|
444
|
+
prependListener(event: "data", listener: (chunk: Buffer | string) => void): this;
|
|
445
|
+
prependListener(event: "end", listener: () => void): this;
|
|
446
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
447
|
+
prependListener(event: "open", listener: (fd: number) => void): this;
|
|
448
|
+
prependListener(event: "pause", listener: () => void): this;
|
|
449
|
+
prependListener(event: "readable", listener: () => void): this;
|
|
450
|
+
prependListener(event: "ready", listener: () => void): this;
|
|
451
|
+
prependListener(event: "resume", listener: () => void): this;
|
|
452
452
|
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
453
|
-
prependOnceListener(event:
|
|
454
|
-
prependOnceListener(event:
|
|
455
|
-
prependOnceListener(event:
|
|
456
|
-
prependOnceListener(event:
|
|
457
|
-
prependOnceListener(event:
|
|
458
|
-
prependOnceListener(event:
|
|
459
|
-
prependOnceListener(event:
|
|
460
|
-
prependOnceListener(event:
|
|
461
|
-
prependOnceListener(event:
|
|
453
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
454
|
+
prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this;
|
|
455
|
+
prependOnceListener(event: "end", listener: () => void): this;
|
|
456
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
457
|
+
prependOnceListener(event: "open", listener: (fd: number) => void): this;
|
|
458
|
+
prependOnceListener(event: "pause", listener: () => void): this;
|
|
459
|
+
prependOnceListener(event: "readable", listener: () => void): this;
|
|
460
|
+
prependOnceListener(event: "ready", listener: () => void): this;
|
|
461
|
+
prependOnceListener(event: "resume", listener: () => void): this;
|
|
462
462
|
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
@@ -499,50 +499,50 @@ declare module 'node:fs' {
|
|
|
499
499
|
* 2. close
|
|
500
500
|
* 3. ready
|
|
501
501
|
*/
|
|
502
|
-
addListener(event:
|
|
503
|
-
addListener(event:
|
|
504
|
-
addListener(event:
|
|
505
|
-
addListener(event:
|
|
506
|
-
addListener(event:
|
|
507
|
-
addListener(event:
|
|
508
|
-
addListener(event:
|
|
509
|
-
addListener(event:
|
|
502
|
+
addListener(event: "close", listener: () => void): this;
|
|
503
|
+
addListener(event: "drain", listener: () => void): this;
|
|
504
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
505
|
+
addListener(event: "finish", listener: () => void): this;
|
|
506
|
+
addListener(event: "open", listener: (fd: number) => void): this;
|
|
507
|
+
addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
508
|
+
addListener(event: "ready", listener: () => void): this;
|
|
509
|
+
addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
510
510
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
511
|
-
on(event:
|
|
512
|
-
on(event:
|
|
513
|
-
on(event:
|
|
514
|
-
on(event:
|
|
515
|
-
on(event:
|
|
516
|
-
on(event:
|
|
517
|
-
on(event:
|
|
518
|
-
on(event:
|
|
511
|
+
on(event: "close", listener: () => void): this;
|
|
512
|
+
on(event: "drain", listener: () => void): this;
|
|
513
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
514
|
+
on(event: "finish", listener: () => void): this;
|
|
515
|
+
on(event: "open", listener: (fd: number) => void): this;
|
|
516
|
+
on(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
517
|
+
on(event: "ready", listener: () => void): this;
|
|
518
|
+
on(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
519
519
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
520
|
-
once(event:
|
|
521
|
-
once(event:
|
|
522
|
-
once(event:
|
|
523
|
-
once(event:
|
|
524
|
-
once(event:
|
|
525
|
-
once(event:
|
|
526
|
-
once(event:
|
|
527
|
-
once(event:
|
|
520
|
+
once(event: "close", listener: () => void): this;
|
|
521
|
+
once(event: "drain", listener: () => void): this;
|
|
522
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
523
|
+
once(event: "finish", listener: () => void): this;
|
|
524
|
+
once(event: "open", listener: (fd: number) => void): this;
|
|
525
|
+
once(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
526
|
+
once(event: "ready", listener: () => void): this;
|
|
527
|
+
once(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
528
528
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
529
|
-
prependListener(event:
|
|
530
|
-
prependListener(event:
|
|
531
|
-
prependListener(event:
|
|
532
|
-
prependListener(event:
|
|
533
|
-
prependListener(event:
|
|
534
|
-
prependListener(event:
|
|
535
|
-
prependListener(event:
|
|
536
|
-
prependListener(event:
|
|
529
|
+
prependListener(event: "close", listener: () => void): this;
|
|
530
|
+
prependListener(event: "drain", listener: () => void): this;
|
|
531
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
532
|
+
prependListener(event: "finish", listener: () => void): this;
|
|
533
|
+
prependListener(event: "open", listener: (fd: number) => void): this;
|
|
534
|
+
prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
535
|
+
prependListener(event: "ready", listener: () => void): this;
|
|
536
|
+
prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
537
537
|
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
538
|
-
prependOnceListener(event:
|
|
539
|
-
prependOnceListener(event:
|
|
540
|
-
prependOnceListener(event:
|
|
541
|
-
prependOnceListener(event:
|
|
542
|
-
prependOnceListener(event:
|
|
543
|
-
prependOnceListener(event:
|
|
544
|
-
prependOnceListener(event:
|
|
545
|
-
prependOnceListener(event:
|
|
538
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
539
|
+
prependOnceListener(event: "drain", listener: () => void): this;
|
|
540
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
541
|
+
prependOnceListener(event: "finish", listener: () => void): this;
|
|
542
|
+
prependOnceListener(event: "open", listener: (fd: number) => void): this;
|
|
543
|
+
prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
544
|
+
prependOnceListener(event: "ready", listener: () => void): this;
|
|
545
|
+
prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
546
546
|
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
547
547
|
}
|
|
548
548
|
/**
|
|
@@ -964,19 +964,23 @@ declare module 'node:fs' {
|
|
|
964
964
|
path: PathLike,
|
|
965
965
|
options:
|
|
966
966
|
| (StatOptions & {
|
|
967
|
-
|
|
968
|
-
|
|
967
|
+
bigint?: false | undefined;
|
|
968
|
+
})
|
|
969
969
|
| undefined,
|
|
970
|
-
callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void
|
|
970
|
+
callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
|
|
971
971
|
): void;
|
|
972
972
|
export function stat(
|
|
973
973
|
path: PathLike,
|
|
974
974
|
options: StatOptions & {
|
|
975
975
|
bigint: true;
|
|
976
976
|
},
|
|
977
|
-
callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void
|
|
977
|
+
callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
|
|
978
|
+
): void;
|
|
979
|
+
export function stat(
|
|
980
|
+
path: PathLike,
|
|
981
|
+
options: StatOptions | undefined,
|
|
982
|
+
callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
|
|
978
983
|
): void;
|
|
979
|
-
export function stat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
980
984
|
export namespace stat {
|
|
981
985
|
/**
|
|
982
986
|
* Asynchronous stat(2) - Get file status.
|
|
@@ -986,13 +990,13 @@ declare module 'node:fs' {
|
|
|
986
990
|
path: PathLike,
|
|
987
991
|
options?: StatOptions & {
|
|
988
992
|
bigint?: false | undefined;
|
|
989
|
-
}
|
|
993
|
+
},
|
|
990
994
|
): Promise<Stats>;
|
|
991
995
|
function __promisify__(
|
|
992
996
|
path: PathLike,
|
|
993
997
|
options: StatOptions & {
|
|
994
998
|
bigint: true;
|
|
995
|
-
}
|
|
999
|
+
},
|
|
996
1000
|
): Promise<BigIntStats>;
|
|
997
1001
|
function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
998
1002
|
}
|
|
@@ -1003,33 +1007,33 @@ declare module 'node:fs' {
|
|
|
1003
1007
|
options?: StatSyncOptions & {
|
|
1004
1008
|
bigint?: false | undefined;
|
|
1005
1009
|
throwIfNoEntry: false;
|
|
1006
|
-
}
|
|
1010
|
+
},
|
|
1007
1011
|
): Stats | undefined;
|
|
1008
1012
|
(
|
|
1009
1013
|
path: PathLike,
|
|
1010
1014
|
options: StatSyncOptions & {
|
|
1011
1015
|
bigint: true;
|
|
1012
1016
|
throwIfNoEntry: false;
|
|
1013
|
-
}
|
|
1017
|
+
},
|
|
1014
1018
|
): BigIntStats | undefined;
|
|
1015
1019
|
(
|
|
1016
1020
|
path: PathLike,
|
|
1017
1021
|
options?: StatSyncOptions & {
|
|
1018
1022
|
bigint?: false | undefined;
|
|
1019
|
-
}
|
|
1023
|
+
},
|
|
1020
1024
|
): Stats;
|
|
1021
1025
|
(
|
|
1022
1026
|
path: PathLike,
|
|
1023
1027
|
options: StatSyncOptions & {
|
|
1024
1028
|
bigint: true;
|
|
1025
|
-
}
|
|
1029
|
+
},
|
|
1026
1030
|
): BigIntStats;
|
|
1027
1031
|
(
|
|
1028
1032
|
path: PathLike,
|
|
1029
1033
|
options: StatSyncOptions & {
|
|
1030
1034
|
bigint: boolean;
|
|
1031
1035
|
throwIfNoEntry?: false | undefined;
|
|
1032
|
-
}
|
|
1036
|
+
},
|
|
1033
1037
|
): Stats | BigIntStats;
|
|
1034
1038
|
(path: PathLike, options?: StatSyncOptions): Stats | BigIntStats | undefined;
|
|
1035
1039
|
}
|
|
@@ -1049,19 +1053,23 @@ declare module 'node:fs' {
|
|
|
1049
1053
|
fd: number,
|
|
1050
1054
|
options:
|
|
1051
1055
|
| (StatOptions & {
|
|
1052
|
-
|
|
1053
|
-
|
|
1056
|
+
bigint?: false | undefined;
|
|
1057
|
+
})
|
|
1054
1058
|
| undefined,
|
|
1055
|
-
callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void
|
|
1059
|
+
callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
|
|
1056
1060
|
): void;
|
|
1057
1061
|
export function fstat(
|
|
1058
1062
|
fd: number,
|
|
1059
1063
|
options: StatOptions & {
|
|
1060
1064
|
bigint: true;
|
|
1061
1065
|
},
|
|
1062
|
-
callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void
|
|
1066
|
+
callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
|
|
1067
|
+
): void;
|
|
1068
|
+
export function fstat(
|
|
1069
|
+
fd: number,
|
|
1070
|
+
options: StatOptions | undefined,
|
|
1071
|
+
callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
|
|
1063
1072
|
): void;
|
|
1064
|
-
export function fstat(fd: number, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
1065
1073
|
export namespace fstat {
|
|
1066
1074
|
/**
|
|
1067
1075
|
* Asynchronous fstat(2) - Get file status.
|
|
@@ -1071,13 +1079,13 @@ declare module 'node:fs' {
|
|
|
1071
1079
|
fd: number,
|
|
1072
1080
|
options?: StatOptions & {
|
|
1073
1081
|
bigint?: false | undefined;
|
|
1074
|
-
}
|
|
1082
|
+
},
|
|
1075
1083
|
): Promise<Stats>;
|
|
1076
1084
|
function __promisify__(
|
|
1077
1085
|
fd: number,
|
|
1078
1086
|
options: StatOptions & {
|
|
1079
1087
|
bigint: true;
|
|
1080
|
-
}
|
|
1088
|
+
},
|
|
1081
1089
|
): Promise<BigIntStats>;
|
|
1082
1090
|
function __promisify__(fd: number, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
1083
1091
|
}
|
|
@@ -1091,13 +1099,13 @@ declare module 'node:fs' {
|
|
|
1091
1099
|
fd: number,
|
|
1092
1100
|
options?: StatOptions & {
|
|
1093
1101
|
bigint?: false | undefined;
|
|
1094
|
-
}
|
|
1102
|
+
},
|
|
1095
1103
|
): Stats;
|
|
1096
1104
|
export function fstatSync(
|
|
1097
1105
|
fd: number,
|
|
1098
1106
|
options: StatOptions & {
|
|
1099
1107
|
bigint: true;
|
|
1100
|
-
}
|
|
1108
|
+
},
|
|
1101
1109
|
): BigIntStats;
|
|
1102
1110
|
export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats;
|
|
1103
1111
|
/**
|
|
@@ -1113,19 +1121,23 @@ declare module 'node:fs' {
|
|
|
1113
1121
|
path: PathLike,
|
|
1114
1122
|
options:
|
|
1115
1123
|
| (StatOptions & {
|
|
1116
|
-
|
|
1117
|
-
|
|
1124
|
+
bigint?: false | undefined;
|
|
1125
|
+
})
|
|
1118
1126
|
| undefined,
|
|
1119
|
-
callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void
|
|
1127
|
+
callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
|
|
1120
1128
|
): void;
|
|
1121
1129
|
export function lstat(
|
|
1122
1130
|
path: PathLike,
|
|
1123
1131
|
options: StatOptions & {
|
|
1124
1132
|
bigint: true;
|
|
1125
1133
|
},
|
|
1126
|
-
callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void
|
|
1134
|
+
callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
|
|
1135
|
+
): void;
|
|
1136
|
+
export function lstat(
|
|
1137
|
+
path: PathLike,
|
|
1138
|
+
options: StatOptions | undefined,
|
|
1139
|
+
callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
|
|
1127
1140
|
): void;
|
|
1128
|
-
export function lstat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
1129
1141
|
export namespace lstat {
|
|
1130
1142
|
/**
|
|
1131
1143
|
* Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
|
|
@@ -1135,13 +1147,13 @@ declare module 'node:fs' {
|
|
|
1135
1147
|
path: PathLike,
|
|
1136
1148
|
options?: StatOptions & {
|
|
1137
1149
|
bigint?: false | undefined;
|
|
1138
|
-
}
|
|
1150
|
+
},
|
|
1139
1151
|
): Promise<Stats>;
|
|
1140
1152
|
function __promisify__(
|
|
1141
1153
|
path: PathLike,
|
|
1142
1154
|
options: StatOptions & {
|
|
1143
1155
|
bigint: true;
|
|
1144
|
-
}
|
|
1156
|
+
},
|
|
1145
1157
|
): Promise<BigIntStats>;
|
|
1146
1158
|
function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
1147
1159
|
}
|
|
@@ -1158,19 +1170,23 @@ declare module 'node:fs' {
|
|
|
1158
1170
|
path: PathLike,
|
|
1159
1171
|
options:
|
|
1160
1172
|
| (StatFsOptions & {
|
|
1161
|
-
|
|
1162
|
-
|
|
1173
|
+
bigint?: false | undefined;
|
|
1174
|
+
})
|
|
1163
1175
|
| undefined,
|
|
1164
|
-
callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void
|
|
1176
|
+
callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void,
|
|
1165
1177
|
): void;
|
|
1166
1178
|
export function statfs(
|
|
1167
1179
|
path: PathLike,
|
|
1168
1180
|
options: StatFsOptions & {
|
|
1169
1181
|
bigint: true;
|
|
1170
1182
|
},
|
|
1171
|
-
callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void
|
|
1183
|
+
callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void,
|
|
1184
|
+
): void;
|
|
1185
|
+
export function statfs(
|
|
1186
|
+
path: PathLike,
|
|
1187
|
+
options: StatFsOptions | undefined,
|
|
1188
|
+
callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void,
|
|
1172
1189
|
): void;
|
|
1173
|
-
export function statfs(path: PathLike, options: StatFsOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void): void;
|
|
1174
1190
|
export namespace statfs {
|
|
1175
1191
|
/**
|
|
1176
1192
|
* Asynchronous statfs(2) - Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an <fs.StatFs> object.
|
|
@@ -1180,13 +1196,13 @@ declare module 'node:fs' {
|
|
|
1180
1196
|
path: PathLike,
|
|
1181
1197
|
options?: StatFsOptions & {
|
|
1182
1198
|
bigint?: false | undefined;
|
|
1183
|
-
}
|
|
1199
|
+
},
|
|
1184
1200
|
): Promise<StatsFs>;
|
|
1185
1201
|
function __promisify__(
|
|
1186
1202
|
path: PathLike,
|
|
1187
1203
|
options: StatFsOptions & {
|
|
1188
1204
|
bigint: true;
|
|
1189
|
-
}
|
|
1205
|
+
},
|
|
1190
1206
|
): Promise<BigIntStatsFs>;
|
|
1191
1207
|
function __promisify__(path: PathLike, options?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
|
|
1192
1208
|
}
|
|
@@ -1202,13 +1218,13 @@ declare module 'node:fs' {
|
|
|
1202
1218
|
path: PathLike,
|
|
1203
1219
|
options?: StatFsOptions & {
|
|
1204
1220
|
bigint?: false | undefined;
|
|
1205
|
-
}
|
|
1221
|
+
},
|
|
1206
1222
|
): StatsFs;
|
|
1207
1223
|
export function statfsSync(
|
|
1208
1224
|
path: PathLike,
|
|
1209
1225
|
options: StatFsOptions & {
|
|
1210
1226
|
bigint: true;
|
|
1211
|
-
}
|
|
1227
|
+
},
|
|
1212
1228
|
): BigIntStatsFs;
|
|
1213
1229
|
export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs;
|
|
1214
1230
|
/**
|
|
@@ -1269,7 +1285,12 @@ declare module 'node:fs' {
|
|
|
1269
1285
|
* @since v0.1.31
|
|
1270
1286
|
* @param [type='null']
|
|
1271
1287
|
*/
|
|
1272
|
-
export function symlink(
|
|
1288
|
+
export function symlink(
|
|
1289
|
+
target: PathLike,
|
|
1290
|
+
path: PathLike,
|
|
1291
|
+
type: symlink.Type | undefined | null,
|
|
1292
|
+
callback: NoParamCallback,
|
|
1293
|
+
): void;
|
|
1273
1294
|
/**
|
|
1274
1295
|
* Asynchronous symlink(2) - Create a new symbolic link to an existing file.
|
|
1275
1296
|
* @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -1285,7 +1306,7 @@ declare module 'node:fs' {
|
|
|
1285
1306
|
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
|
1286
1307
|
*/
|
|
1287
1308
|
function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
|
|
1288
|
-
type Type =
|
|
1309
|
+
type Type = "dir" | "file" | "junction";
|
|
1289
1310
|
}
|
|
1290
1311
|
/**
|
|
1291
1312
|
* Returns `undefined`.
|
|
@@ -1308,24 +1329,39 @@ declare module 'node:fs' {
|
|
|
1308
1329
|
* the link path returned will be passed as a `Buffer` object.
|
|
1309
1330
|
* @since v0.1.31
|
|
1310
1331
|
*/
|
|
1311
|
-
export function readlink(
|
|
1332
|
+
export function readlink(
|
|
1333
|
+
path: PathLike,
|
|
1334
|
+
options: EncodingOption,
|
|
1335
|
+
callback: (err: NodeJS.ErrnoException | null, linkString: string) => void,
|
|
1336
|
+
): void;
|
|
1312
1337
|
/**
|
|
1313
1338
|
* Asynchronous readlink(2) - read value of a symbolic link.
|
|
1314
1339
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
1315
1340
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
1316
1341
|
*/
|
|
1317
|
-
export function readlink(
|
|
1342
|
+
export function readlink(
|
|
1343
|
+
path: PathLike,
|
|
1344
|
+
options: BufferEncodingOption,
|
|
1345
|
+
callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void,
|
|
1346
|
+
): void;
|
|
1318
1347
|
/**
|
|
1319
1348
|
* Asynchronous readlink(2) - read value of a symbolic link.
|
|
1320
1349
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
1321
1350
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
1322
1351
|
*/
|
|
1323
|
-
export function readlink(
|
|
1352
|
+
export function readlink(
|
|
1353
|
+
path: PathLike,
|
|
1354
|
+
options: EncodingOption,
|
|
1355
|
+
callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void,
|
|
1356
|
+
): void;
|
|
1324
1357
|
/**
|
|
1325
1358
|
* Asynchronous readlink(2) - read value of a symbolic link.
|
|
1326
1359
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
1327
1360
|
*/
|
|
1328
|
-
export function readlink(
|
|
1361
|
+
export function readlink(
|
|
1362
|
+
path: PathLike,
|
|
1363
|
+
callback: (err: NodeJS.ErrnoException | null, linkString: string) => void,
|
|
1364
|
+
): void;
|
|
1329
1365
|
export namespace readlink {
|
|
1330
1366
|
/**
|
|
1331
1367
|
* Asynchronous readlink(2) - read value of a symbolic link.
|
|
@@ -1396,24 +1432,39 @@ declare module 'node:fs' {
|
|
|
1396
1432
|
* dependent name for that object.
|
|
1397
1433
|
* @since v0.1.31
|
|
1398
1434
|
*/
|
|
1399
|
-
export function realpath(
|
|
1435
|
+
export function realpath(
|
|
1436
|
+
path: PathLike,
|
|
1437
|
+
options: EncodingOption,
|
|
1438
|
+
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
|
|
1439
|
+
): void;
|
|
1400
1440
|
/**
|
|
1401
1441
|
* Asynchronous realpath(3) - return the canonicalized absolute pathname.
|
|
1402
1442
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
1403
1443
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
1404
1444
|
*/
|
|
1405
|
-
export function realpath(
|
|
1445
|
+
export function realpath(
|
|
1446
|
+
path: PathLike,
|
|
1447
|
+
options: BufferEncodingOption,
|
|
1448
|
+
callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void,
|
|
1449
|
+
): void;
|
|
1406
1450
|
/**
|
|
1407
1451
|
* Asynchronous realpath(3) - return the canonicalized absolute pathname.
|
|
1408
1452
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
1409
1453
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
1410
1454
|
*/
|
|
1411
|
-
export function realpath(
|
|
1455
|
+
export function realpath(
|
|
1456
|
+
path: PathLike,
|
|
1457
|
+
options: EncodingOption,
|
|
1458
|
+
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void,
|
|
1459
|
+
): void;
|
|
1412
1460
|
/**
|
|
1413
1461
|
* Asynchronous realpath(3) - return the canonicalized absolute pathname.
|
|
1414
1462
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
1415
1463
|
*/
|
|
1416
|
-
export function realpath(
|
|
1464
|
+
export function realpath(
|
|
1465
|
+
path: PathLike,
|
|
1466
|
+
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
|
|
1467
|
+
): void;
|
|
1417
1468
|
export namespace realpath {
|
|
1418
1469
|
/**
|
|
1419
1470
|
* Asynchronous realpath(3) - return the canonicalized absolute pathname.
|
|
@@ -1450,10 +1501,25 @@ declare module 'node:fs' {
|
|
|
1450
1501
|
* this restriction.
|
|
1451
1502
|
* @since v9.2.0
|
|
1452
1503
|
*/
|
|
1453
|
-
function native(
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1504
|
+
function native(
|
|
1505
|
+
path: PathLike,
|
|
1506
|
+
options: EncodingOption,
|
|
1507
|
+
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
|
|
1508
|
+
): void;
|
|
1509
|
+
function native(
|
|
1510
|
+
path: PathLike,
|
|
1511
|
+
options: BufferEncodingOption,
|
|
1512
|
+
callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void,
|
|
1513
|
+
): void;
|
|
1514
|
+
function native(
|
|
1515
|
+
path: PathLike,
|
|
1516
|
+
options: EncodingOption,
|
|
1517
|
+
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void,
|
|
1518
|
+
): void;
|
|
1519
|
+
function native(
|
|
1520
|
+
path: PathLike,
|
|
1521
|
+
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
|
|
1522
|
+
): void;
|
|
1457
1523
|
}
|
|
1458
1524
|
/**
|
|
1459
1525
|
* Returns the resolved pathname.
|
|
@@ -1668,7 +1734,7 @@ declare module 'node:fs' {
|
|
|
1668
1734
|
options: MakeDirectoryOptions & {
|
|
1669
1735
|
recursive: true;
|
|
1670
1736
|
},
|
|
1671
|
-
callback: (err: NodeJS.ErrnoException | null, path?: string) => void
|
|
1737
|
+
callback: (err: NodeJS.ErrnoException | null, path?: string) => void,
|
|
1672
1738
|
): void;
|
|
1673
1739
|
/**
|
|
1674
1740
|
* Asynchronous mkdir(2) - create a directory.
|
|
@@ -1681,11 +1747,11 @@ declare module 'node:fs' {
|
|
|
1681
1747
|
options:
|
|
1682
1748
|
| Mode
|
|
1683
1749
|
| (MakeDirectoryOptions & {
|
|
1684
|
-
|
|
1685
|
-
|
|
1750
|
+
recursive?: false | undefined;
|
|
1751
|
+
})
|
|
1686
1752
|
| null
|
|
1687
1753
|
| undefined,
|
|
1688
|
-
callback: NoParamCallback
|
|
1754
|
+
callback: NoParamCallback,
|
|
1689
1755
|
): void;
|
|
1690
1756
|
/**
|
|
1691
1757
|
* Asynchronous mkdir(2) - create a directory.
|
|
@@ -1693,7 +1759,11 @@ declare module 'node:fs' {
|
|
|
1693
1759
|
* @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
|
|
1694
1760
|
* should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
|
|
1695
1761
|
*/
|
|
1696
|
-
export function mkdir(
|
|
1762
|
+
export function mkdir(
|
|
1763
|
+
path: PathLike,
|
|
1764
|
+
options: Mode | MakeDirectoryOptions | null | undefined,
|
|
1765
|
+
callback: (err: NodeJS.ErrnoException | null, path?: string) => void,
|
|
1766
|
+
): void;
|
|
1697
1767
|
/**
|
|
1698
1768
|
* Asynchronous mkdir(2) - create a directory with a mode of `0o777`.
|
|
1699
1769
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -1710,7 +1780,7 @@ declare module 'node:fs' {
|
|
|
1710
1780
|
path: PathLike,
|
|
1711
1781
|
options: MakeDirectoryOptions & {
|
|
1712
1782
|
recursive: true;
|
|
1713
|
-
}
|
|
1783
|
+
},
|
|
1714
1784
|
): Promise<string | undefined>;
|
|
1715
1785
|
/**
|
|
1716
1786
|
* Asynchronous mkdir(2) - create a directory.
|
|
@@ -1723,9 +1793,9 @@ declare module 'node:fs' {
|
|
|
1723
1793
|
options?:
|
|
1724
1794
|
| Mode
|
|
1725
1795
|
| (MakeDirectoryOptions & {
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
| null
|
|
1796
|
+
recursive?: false | undefined;
|
|
1797
|
+
})
|
|
1798
|
+
| null,
|
|
1729
1799
|
): Promise<void>;
|
|
1730
1800
|
/**
|
|
1731
1801
|
* Asynchronous mkdir(2) - create a directory.
|
|
@@ -1733,7 +1803,10 @@ declare module 'node:fs' {
|
|
|
1733
1803
|
* @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
|
|
1734
1804
|
* should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
|
|
1735
1805
|
*/
|
|
1736
|
-
function __promisify__(
|
|
1806
|
+
function __promisify__(
|
|
1807
|
+
path: PathLike,
|
|
1808
|
+
options?: Mode | MakeDirectoryOptions | null,
|
|
1809
|
+
): Promise<string | undefined>;
|
|
1737
1810
|
}
|
|
1738
1811
|
/**
|
|
1739
1812
|
* Synchronously creates a directory. Returns `undefined`, or if `recursive` is`true`, the first directory path created.
|
|
@@ -1746,7 +1819,7 @@ declare module 'node:fs' {
|
|
|
1746
1819
|
path: PathLike,
|
|
1747
1820
|
options: MakeDirectoryOptions & {
|
|
1748
1821
|
recursive: true;
|
|
1749
|
-
}
|
|
1822
|
+
},
|
|
1750
1823
|
): string | undefined;
|
|
1751
1824
|
/**
|
|
1752
1825
|
* Synchronous mkdir(2) - create a directory.
|
|
@@ -1759,9 +1832,9 @@ declare module 'node:fs' {
|
|
|
1759
1832
|
options?:
|
|
1760
1833
|
| Mode
|
|
1761
1834
|
| (MakeDirectoryOptions & {
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
| null
|
|
1835
|
+
recursive?: false | undefined;
|
|
1836
|
+
})
|
|
1837
|
+
| null,
|
|
1765
1838
|
): void;
|
|
1766
1839
|
/**
|
|
1767
1840
|
* Synchronous mkdir(2) - create a directory.
|
|
@@ -1829,7 +1902,11 @@ declare module 'node:fs' {
|
|
|
1829
1902
|
* ```
|
|
1830
1903
|
* @since v5.10.0
|
|
1831
1904
|
*/
|
|
1832
|
-
export function mkdtemp(
|
|
1905
|
+
export function mkdtemp(
|
|
1906
|
+
prefix: string,
|
|
1907
|
+
options: EncodingOption,
|
|
1908
|
+
callback: (err: NodeJS.ErrnoException | null, folder: string) => void,
|
|
1909
|
+
): void;
|
|
1833
1910
|
/**
|
|
1834
1911
|
* Asynchronously creates a unique temporary directory.
|
|
1835
1912
|
* Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
|
|
@@ -1838,23 +1915,30 @@ declare module 'node:fs' {
|
|
|
1838
1915
|
export function mkdtemp(
|
|
1839
1916
|
prefix: string,
|
|
1840
1917
|
options:
|
|
1841
|
-
|
|
|
1918
|
+
| "buffer"
|
|
1842
1919
|
| {
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void
|
|
1920
|
+
encoding: "buffer";
|
|
1921
|
+
},
|
|
1922
|
+
callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void,
|
|
1846
1923
|
): void;
|
|
1847
1924
|
/**
|
|
1848
1925
|
* Asynchronously creates a unique temporary directory.
|
|
1849
1926
|
* Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
|
|
1850
1927
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
1851
1928
|
*/
|
|
1852
|
-
export function mkdtemp(
|
|
1929
|
+
export function mkdtemp(
|
|
1930
|
+
prefix: string,
|
|
1931
|
+
options: EncodingOption,
|
|
1932
|
+
callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void,
|
|
1933
|
+
): void;
|
|
1853
1934
|
/**
|
|
1854
1935
|
* Asynchronously creates a unique temporary directory.
|
|
1855
1936
|
* Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
|
|
1856
1937
|
*/
|
|
1857
|
-
export function mkdtemp(
|
|
1938
|
+
export function mkdtemp(
|
|
1939
|
+
prefix: string,
|
|
1940
|
+
callback: (err: NodeJS.ErrnoException | null, folder: string) => void,
|
|
1941
|
+
): void;
|
|
1858
1942
|
export namespace mkdtemp {
|
|
1859
1943
|
/**
|
|
1860
1944
|
* Asynchronously creates a unique temporary directory.
|
|
@@ -1915,14 +1999,14 @@ declare module 'node:fs' {
|
|
|
1915
1999
|
path: PathLike,
|
|
1916
2000
|
options:
|
|
1917
2001
|
| {
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
2002
|
+
encoding: BufferEncoding | null;
|
|
2003
|
+
withFileTypes?: false | undefined;
|
|
2004
|
+
recursive?: boolean | undefined;
|
|
2005
|
+
}
|
|
1922
2006
|
| BufferEncoding
|
|
1923
2007
|
| undefined
|
|
1924
2008
|
| null,
|
|
1925
|
-
callback: (err: NodeJS.ErrnoException | null, files: string[]) => void
|
|
2009
|
+
callback: (err: NodeJS.ErrnoException | null, files: string[]) => void,
|
|
1926
2010
|
): void;
|
|
1927
2011
|
/**
|
|
1928
2012
|
* Asynchronous readdir(3) - read a directory.
|
|
@@ -1933,12 +2017,12 @@ declare module 'node:fs' {
|
|
|
1933
2017
|
path: PathLike,
|
|
1934
2018
|
options:
|
|
1935
2019
|
| {
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
|
1941
|
-
callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void
|
|
2020
|
+
encoding: "buffer";
|
|
2021
|
+
withFileTypes?: false | undefined;
|
|
2022
|
+
recursive?: boolean | undefined;
|
|
2023
|
+
}
|
|
2024
|
+
| "buffer",
|
|
2025
|
+
callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void,
|
|
1942
2026
|
): void;
|
|
1943
2027
|
/**
|
|
1944
2028
|
* Asynchronous readdir(3) - read a directory.
|
|
@@ -1949,19 +2033,22 @@ declare module 'node:fs' {
|
|
|
1949
2033
|
path: PathLike,
|
|
1950
2034
|
options:
|
|
1951
2035
|
| (ObjectEncodingOptions & {
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
2036
|
+
withFileTypes?: false | undefined;
|
|
2037
|
+
recursive?: boolean | undefined;
|
|
2038
|
+
})
|
|
1955
2039
|
| BufferEncoding
|
|
1956
2040
|
| undefined
|
|
1957
2041
|
| null,
|
|
1958
|
-
callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void
|
|
2042
|
+
callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void,
|
|
1959
2043
|
): void;
|
|
1960
2044
|
/**
|
|
1961
2045
|
* Asynchronous readdir(3) - read a directory.
|
|
1962
2046
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
1963
2047
|
*/
|
|
1964
|
-
export function readdir(
|
|
2048
|
+
export function readdir(
|
|
2049
|
+
path: PathLike,
|
|
2050
|
+
callback: (err: NodeJS.ErrnoException | null, files: string[]) => void,
|
|
2051
|
+
): void;
|
|
1965
2052
|
/**
|
|
1966
2053
|
* Asynchronous readdir(3) - read a directory.
|
|
1967
2054
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -1973,7 +2060,7 @@ declare module 'node:fs' {
|
|
|
1973
2060
|
withFileTypes: true;
|
|
1974
2061
|
recursive?: boolean | undefined;
|
|
1975
2062
|
},
|
|
1976
|
-
callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void
|
|
2063
|
+
callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void,
|
|
1977
2064
|
): void;
|
|
1978
2065
|
export namespace readdir {
|
|
1979
2066
|
/**
|
|
@@ -1985,12 +2072,12 @@ declare module 'node:fs' {
|
|
|
1985
2072
|
path: PathLike,
|
|
1986
2073
|
options?:
|
|
1987
2074
|
| {
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
2075
|
+
encoding: BufferEncoding | null;
|
|
2076
|
+
withFileTypes?: false | undefined;
|
|
2077
|
+
recursive?: boolean | undefined;
|
|
2078
|
+
}
|
|
1992
2079
|
| BufferEncoding
|
|
1993
|
-
| null
|
|
2080
|
+
| null,
|
|
1994
2081
|
): Promise<string[]>;
|
|
1995
2082
|
/**
|
|
1996
2083
|
* Asynchronous readdir(3) - read a directory.
|
|
@@ -2000,12 +2087,12 @@ declare module 'node:fs' {
|
|
|
2000
2087
|
function __promisify__(
|
|
2001
2088
|
path: PathLike,
|
|
2002
2089
|
options:
|
|
2003
|
-
|
|
|
2090
|
+
| "buffer"
|
|
2004
2091
|
| {
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2092
|
+
encoding: "buffer";
|
|
2093
|
+
withFileTypes?: false | undefined;
|
|
2094
|
+
recursive?: boolean | undefined;
|
|
2095
|
+
},
|
|
2009
2096
|
): Promise<Buffer[]>;
|
|
2010
2097
|
/**
|
|
2011
2098
|
* Asynchronous readdir(3) - read a directory.
|
|
@@ -2016,11 +2103,11 @@ declare module 'node:fs' {
|
|
|
2016
2103
|
path: PathLike,
|
|
2017
2104
|
options?:
|
|
2018
2105
|
| (ObjectEncodingOptions & {
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2106
|
+
withFileTypes?: false | undefined;
|
|
2107
|
+
recursive?: boolean | undefined;
|
|
2108
|
+
})
|
|
2022
2109
|
| BufferEncoding
|
|
2023
|
-
| null
|
|
2110
|
+
| null,
|
|
2024
2111
|
): Promise<string[] | Buffer[]>;
|
|
2025
2112
|
/**
|
|
2026
2113
|
* Asynchronous readdir(3) - read a directory.
|
|
@@ -2032,7 +2119,7 @@ declare module 'node:fs' {
|
|
|
2032
2119
|
options: ObjectEncodingOptions & {
|
|
2033
2120
|
withFileTypes: true;
|
|
2034
2121
|
recursive?: boolean | undefined;
|
|
2035
|
-
}
|
|
2122
|
+
},
|
|
2036
2123
|
): Promise<Dirent[]>;
|
|
2037
2124
|
}
|
|
2038
2125
|
/**
|
|
@@ -2052,12 +2139,12 @@ declare module 'node:fs' {
|
|
|
2052
2139
|
path: PathLike,
|
|
2053
2140
|
options?:
|
|
2054
2141
|
| {
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2142
|
+
encoding: BufferEncoding | null;
|
|
2143
|
+
withFileTypes?: false | undefined;
|
|
2144
|
+
recursive?: boolean | undefined;
|
|
2145
|
+
}
|
|
2059
2146
|
| BufferEncoding
|
|
2060
|
-
| null
|
|
2147
|
+
| null,
|
|
2061
2148
|
): string[];
|
|
2062
2149
|
/**
|
|
2063
2150
|
* Synchronous readdir(3) - read a directory.
|
|
@@ -2068,11 +2155,11 @@ declare module 'node:fs' {
|
|
|
2068
2155
|
path: PathLike,
|
|
2069
2156
|
options:
|
|
2070
2157
|
| {
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
|
2158
|
+
encoding: "buffer";
|
|
2159
|
+
withFileTypes?: false | undefined;
|
|
2160
|
+
recursive?: boolean | undefined;
|
|
2161
|
+
}
|
|
2162
|
+
| "buffer",
|
|
2076
2163
|
): Buffer[];
|
|
2077
2164
|
/**
|
|
2078
2165
|
* Synchronous readdir(3) - read a directory.
|
|
@@ -2083,11 +2170,11 @@ declare module 'node:fs' {
|
|
|
2083
2170
|
path: PathLike,
|
|
2084
2171
|
options?:
|
|
2085
2172
|
| (ObjectEncodingOptions & {
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2173
|
+
withFileTypes?: false | undefined;
|
|
2174
|
+
recursive?: boolean | undefined;
|
|
2175
|
+
})
|
|
2089
2176
|
| BufferEncoding
|
|
2090
|
-
| null
|
|
2177
|
+
| null,
|
|
2091
2178
|
): string[] | Buffer[];
|
|
2092
2179
|
/**
|
|
2093
2180
|
* Synchronous readdir(3) - read a directory.
|
|
@@ -2099,7 +2186,7 @@ declare module 'node:fs' {
|
|
|
2099
2186
|
options: ObjectEncodingOptions & {
|
|
2100
2187
|
withFileTypes: true;
|
|
2101
2188
|
recursive?: boolean | undefined;
|
|
2102
|
-
}
|
|
2189
|
+
},
|
|
2103
2190
|
): Dirent[];
|
|
2104
2191
|
/**
|
|
2105
2192
|
* Closes the file descriptor. No arguments other than a possible exception are
|
|
@@ -2146,13 +2233,22 @@ declare module 'node:fs' {
|
|
|
2146
2233
|
* @param [flags='r'] See `support of file system `flags``.
|
|
2147
2234
|
* @param [mode=0o666]
|
|
2148
2235
|
*/
|
|
2149
|
-
export function open(
|
|
2236
|
+
export function open(
|
|
2237
|
+
path: PathLike,
|
|
2238
|
+
flags: OpenMode | undefined,
|
|
2239
|
+
mode: Mode | undefined | null,
|
|
2240
|
+
callback: (err: NodeJS.ErrnoException | null, fd: number) => void,
|
|
2241
|
+
): void;
|
|
2150
2242
|
/**
|
|
2151
2243
|
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
2152
2244
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2153
2245
|
* @param [flags='r'] See `support of file system `flags``.
|
|
2154
2246
|
*/
|
|
2155
|
-
export function open(
|
|
2247
|
+
export function open(
|
|
2248
|
+
path: PathLike,
|
|
2249
|
+
flags: OpenMode | undefined,
|
|
2250
|
+
callback: (err: NodeJS.ErrnoException | null, fd: number) => void,
|
|
2251
|
+
): void;
|
|
2156
2252
|
/**
|
|
2157
2253
|
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
2158
2254
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -2278,7 +2374,7 @@ declare module 'node:fs' {
|
|
|
2278
2374
|
offset: number | undefined | null,
|
|
2279
2375
|
length: number | undefined | null,
|
|
2280
2376
|
position: number | undefined | null,
|
|
2281
|
-
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
|
|
2377
|
+
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
|
|
2282
2378
|
): void;
|
|
2283
2379
|
/**
|
|
2284
2380
|
* Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
|
|
@@ -2291,7 +2387,7 @@ declare module 'node:fs' {
|
|
|
2291
2387
|
buffer: TBuffer,
|
|
2292
2388
|
offset: number | undefined | null,
|
|
2293
2389
|
length: number | undefined | null,
|
|
2294
|
-
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
|
|
2390
|
+
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
|
|
2295
2391
|
): void;
|
|
2296
2392
|
/**
|
|
2297
2393
|
* Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
|
|
@@ -2302,13 +2398,17 @@ declare module 'node:fs' {
|
|
|
2302
2398
|
fd: number,
|
|
2303
2399
|
buffer: TBuffer,
|
|
2304
2400
|
offset: number | undefined | null,
|
|
2305
|
-
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
|
|
2401
|
+
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
|
|
2306
2402
|
): void;
|
|
2307
2403
|
/**
|
|
2308
2404
|
* Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
|
|
2309
2405
|
* @param fd A file descriptor.
|
|
2310
2406
|
*/
|
|
2311
|
-
export function write<TBuffer extends NodeJS.ArrayBufferView>(
|
|
2407
|
+
export function write<TBuffer extends NodeJS.ArrayBufferView>(
|
|
2408
|
+
fd: number,
|
|
2409
|
+
buffer: TBuffer,
|
|
2410
|
+
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
|
|
2411
|
+
): void;
|
|
2312
2412
|
/**
|
|
2313
2413
|
* Asynchronously writes `string` to the file referenced by the supplied file descriptor.
|
|
2314
2414
|
* @param fd A file descriptor.
|
|
@@ -2321,7 +2421,7 @@ declare module 'node:fs' {
|
|
|
2321
2421
|
string: string,
|
|
2322
2422
|
position: number | undefined | null,
|
|
2323
2423
|
encoding: BufferEncoding | undefined | null,
|
|
2324
|
-
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void
|
|
2424
|
+
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
|
|
2325
2425
|
): void;
|
|
2326
2426
|
/**
|
|
2327
2427
|
* Asynchronously writes `string` to the file referenced by the supplied file descriptor.
|
|
@@ -2329,13 +2429,22 @@ declare module 'node:fs' {
|
|
|
2329
2429
|
* @param string A string to write.
|
|
2330
2430
|
* @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
|
|
2331
2431
|
*/
|
|
2332
|
-
export function write(
|
|
2432
|
+
export function write(
|
|
2433
|
+
fd: number,
|
|
2434
|
+
string: string,
|
|
2435
|
+
position: number | undefined | null,
|
|
2436
|
+
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
|
|
2437
|
+
): void;
|
|
2333
2438
|
/**
|
|
2334
2439
|
* Asynchronously writes `string` to the file referenced by the supplied file descriptor.
|
|
2335
2440
|
* @param fd A file descriptor.
|
|
2336
2441
|
* @param string A string to write.
|
|
2337
2442
|
*/
|
|
2338
|
-
export function write(
|
|
2443
|
+
export function write(
|
|
2444
|
+
fd: number,
|
|
2445
|
+
string: string,
|
|
2446
|
+
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
|
|
2447
|
+
): void;
|
|
2339
2448
|
export namespace write {
|
|
2340
2449
|
/**
|
|
2341
2450
|
* Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
|
|
@@ -2349,7 +2458,7 @@ declare module 'node:fs' {
|
|
|
2349
2458
|
buffer?: TBuffer,
|
|
2350
2459
|
offset?: number,
|
|
2351
2460
|
length?: number,
|
|
2352
|
-
position?: number | null
|
|
2461
|
+
position?: number | null,
|
|
2353
2462
|
): Promise<{
|
|
2354
2463
|
bytesWritten: number;
|
|
2355
2464
|
buffer: TBuffer;
|
|
@@ -2365,7 +2474,7 @@ declare module 'node:fs' {
|
|
|
2365
2474
|
fd: number,
|
|
2366
2475
|
string: string,
|
|
2367
2476
|
position?: number | null,
|
|
2368
|
-
encoding?: BufferEncoding | null
|
|
2477
|
+
encoding?: BufferEncoding | null,
|
|
2369
2478
|
): Promise<{
|
|
2370
2479
|
bytesWritten: number;
|
|
2371
2480
|
buffer: string;
|
|
@@ -2380,7 +2489,13 @@ declare module 'node:fs' {
|
|
|
2380
2489
|
* @param [position='null']
|
|
2381
2490
|
* @return The number of bytes written.
|
|
2382
2491
|
*/
|
|
2383
|
-
export function writeSync(
|
|
2492
|
+
export function writeSync(
|
|
2493
|
+
fd: number,
|
|
2494
|
+
buffer: NodeJS.ArrayBufferView,
|
|
2495
|
+
offset?: number | null,
|
|
2496
|
+
length?: number | null,
|
|
2497
|
+
position?: number | null,
|
|
2498
|
+
): number;
|
|
2384
2499
|
/**
|
|
2385
2500
|
* Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written.
|
|
2386
2501
|
* @param fd A file descriptor.
|
|
@@ -2388,7 +2503,12 @@ declare module 'node:fs' {
|
|
|
2388
2503
|
* @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
|
|
2389
2504
|
* @param encoding The expected string encoding.
|
|
2390
2505
|
*/
|
|
2391
|
-
export function writeSync(
|
|
2506
|
+
export function writeSync(
|
|
2507
|
+
fd: number,
|
|
2508
|
+
string: string,
|
|
2509
|
+
position?: number | null,
|
|
2510
|
+
encoding?: BufferEncoding | null,
|
|
2511
|
+
): number;
|
|
2392
2512
|
export type ReadPosition = number | bigint;
|
|
2393
2513
|
export interface ReadSyncOptions {
|
|
2394
2514
|
/**
|
|
@@ -2430,7 +2550,7 @@ declare module 'node:fs' {
|
|
|
2430
2550
|
offset: number,
|
|
2431
2551
|
length: number,
|
|
2432
2552
|
position: ReadPosition | null,
|
|
2433
|
-
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
|
|
2553
|
+
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void,
|
|
2434
2554
|
): void;
|
|
2435
2555
|
/**
|
|
2436
2556
|
* Similar to the above `fs.read` function, this version takes an optional `options` object.
|
|
@@ -2444,9 +2564,12 @@ declare module 'node:fs' {
|
|
|
2444
2564
|
export function read<TBuffer extends NodeJS.ArrayBufferView>(
|
|
2445
2565
|
fd: number,
|
|
2446
2566
|
options: ReadAsyncOptions<TBuffer>,
|
|
2447
|
-
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
|
|
2567
|
+
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void,
|
|
2568
|
+
): void;
|
|
2569
|
+
export function read(
|
|
2570
|
+
fd: number,
|
|
2571
|
+
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void,
|
|
2448
2572
|
): void;
|
|
2449
|
-
export function read(fd: number, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void): void;
|
|
2450
2573
|
export namespace read {
|
|
2451
2574
|
/**
|
|
2452
2575
|
* @param fd A file descriptor.
|
|
@@ -2460,14 +2583,14 @@ declare module 'node:fs' {
|
|
|
2460
2583
|
buffer: TBuffer,
|
|
2461
2584
|
offset: number,
|
|
2462
2585
|
length: number,
|
|
2463
|
-
position: number | null
|
|
2586
|
+
position: number | null,
|
|
2464
2587
|
): Promise<{
|
|
2465
2588
|
bytesRead: number;
|
|
2466
2589
|
buffer: TBuffer;
|
|
2467
2590
|
}>;
|
|
2468
2591
|
function __promisify__<TBuffer extends NodeJS.ArrayBufferView>(
|
|
2469
2592
|
fd: number,
|
|
2470
|
-
options: ReadAsyncOptions<TBuffer
|
|
2593
|
+
options: ReadAsyncOptions<TBuffer>,
|
|
2471
2594
|
): Promise<{
|
|
2472
2595
|
bytesRead: number;
|
|
2473
2596
|
buffer: TBuffer;
|
|
@@ -2485,7 +2608,13 @@ declare module 'node:fs' {
|
|
|
2485
2608
|
* @since v0.1.21
|
|
2486
2609
|
* @param [position='null']
|
|
2487
2610
|
*/
|
|
2488
|
-
export function readSync(
|
|
2611
|
+
export function readSync(
|
|
2612
|
+
fd: number,
|
|
2613
|
+
buffer: NodeJS.ArrayBufferView,
|
|
2614
|
+
offset: number,
|
|
2615
|
+
length: number,
|
|
2616
|
+
position: ReadPosition | null,
|
|
2617
|
+
): number;
|
|
2489
2618
|
/**
|
|
2490
2619
|
* Similar to the above `fs.readSync` function, this version takes an optional `options` object.
|
|
2491
2620
|
* If no `options` object is specified, it will default with the above values.
|
|
@@ -2561,12 +2690,12 @@ declare module 'node:fs' {
|
|
|
2561
2690
|
path: PathOrFileDescriptor,
|
|
2562
2691
|
options:
|
|
2563
2692
|
| ({
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2693
|
+
encoding?: null | undefined;
|
|
2694
|
+
flag?: string | undefined;
|
|
2695
|
+
} & Abortable)
|
|
2567
2696
|
| undefined
|
|
2568
2697
|
| null,
|
|
2569
|
-
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void
|
|
2698
|
+
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void,
|
|
2570
2699
|
): void;
|
|
2571
2700
|
/**
|
|
2572
2701
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -2579,11 +2708,11 @@ declare module 'node:fs' {
|
|
|
2579
2708
|
path: PathOrFileDescriptor,
|
|
2580
2709
|
options:
|
|
2581
2710
|
| ({
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2711
|
+
encoding: BufferEncoding;
|
|
2712
|
+
flag?: string | undefined;
|
|
2713
|
+
} & Abortable)
|
|
2585
2714
|
| BufferEncoding,
|
|
2586
|
-
callback: (err: NodeJS.ErrnoException | null, data: string) => void
|
|
2715
|
+
callback: (err: NodeJS.ErrnoException | null, data: string) => void,
|
|
2587
2716
|
): void;
|
|
2588
2717
|
/**
|
|
2589
2718
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -2596,19 +2725,22 @@ declare module 'node:fs' {
|
|
|
2596
2725
|
path: PathOrFileDescriptor,
|
|
2597
2726
|
options:
|
|
2598
2727
|
| (ObjectEncodingOptions & {
|
|
2599
|
-
|
|
2600
|
-
|
|
2728
|
+
flag?: string | undefined;
|
|
2729
|
+
} & Abortable)
|
|
2601
2730
|
| BufferEncoding
|
|
2602
2731
|
| undefined
|
|
2603
2732
|
| null,
|
|
2604
|
-
callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void
|
|
2733
|
+
callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void,
|
|
2605
2734
|
): void;
|
|
2606
2735
|
/**
|
|
2607
2736
|
* Asynchronously reads the entire contents of a file.
|
|
2608
2737
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2609
2738
|
* If a file descriptor is provided, the underlying file will _not_ be closed automatically.
|
|
2610
2739
|
*/
|
|
2611
|
-
export function readFile(
|
|
2740
|
+
export function readFile(
|
|
2741
|
+
path: PathOrFileDescriptor,
|
|
2742
|
+
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void,
|
|
2743
|
+
): void;
|
|
2612
2744
|
export namespace readFile {
|
|
2613
2745
|
/**
|
|
2614
2746
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -2622,7 +2754,7 @@ declare module 'node:fs' {
|
|
|
2622
2754
|
options?: {
|
|
2623
2755
|
encoding?: null | undefined;
|
|
2624
2756
|
flag?: string | undefined;
|
|
2625
|
-
} | null
|
|
2757
|
+
} | null,
|
|
2626
2758
|
): Promise<Buffer>;
|
|
2627
2759
|
/**
|
|
2628
2760
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -2636,10 +2768,10 @@ declare module 'node:fs' {
|
|
|
2636
2768
|
path: PathOrFileDescriptor,
|
|
2637
2769
|
options:
|
|
2638
2770
|
| {
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
| BufferEncoding
|
|
2771
|
+
encoding: BufferEncoding;
|
|
2772
|
+
flag?: string | undefined;
|
|
2773
|
+
}
|
|
2774
|
+
| BufferEncoding,
|
|
2643
2775
|
): Promise<string>;
|
|
2644
2776
|
/**
|
|
2645
2777
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -2653,10 +2785,10 @@ declare module 'node:fs' {
|
|
|
2653
2785
|
path: PathOrFileDescriptor,
|
|
2654
2786
|
options?:
|
|
2655
2787
|
| (ObjectEncodingOptions & {
|
|
2656
|
-
|
|
2657
|
-
|
|
2788
|
+
flag?: string | undefined;
|
|
2789
|
+
})
|
|
2658
2790
|
| BufferEncoding
|
|
2659
|
-
| null
|
|
2791
|
+
| null,
|
|
2660
2792
|
): Promise<string | Buffer>;
|
|
2661
2793
|
}
|
|
2662
2794
|
/**
|
|
@@ -2688,7 +2820,7 @@ declare module 'node:fs' {
|
|
|
2688
2820
|
options?: {
|
|
2689
2821
|
encoding?: null | undefined;
|
|
2690
2822
|
flag?: string | undefined;
|
|
2691
|
-
} | null
|
|
2823
|
+
} | null,
|
|
2692
2824
|
): Buffer;
|
|
2693
2825
|
/**
|
|
2694
2826
|
* Synchronously reads the entire contents of a file.
|
|
@@ -2701,10 +2833,10 @@ declare module 'node:fs' {
|
|
|
2701
2833
|
path: PathOrFileDescriptor,
|
|
2702
2834
|
options:
|
|
2703
2835
|
| {
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
| BufferEncoding
|
|
2836
|
+
encoding: BufferEncoding;
|
|
2837
|
+
flag?: string | undefined;
|
|
2838
|
+
}
|
|
2839
|
+
| BufferEncoding,
|
|
2708
2840
|
): string;
|
|
2709
2841
|
/**
|
|
2710
2842
|
* Synchronously reads the entire contents of a file.
|
|
@@ -2717,17 +2849,20 @@ declare module 'node:fs' {
|
|
|
2717
2849
|
path: PathOrFileDescriptor,
|
|
2718
2850
|
options?:
|
|
2719
2851
|
| (ObjectEncodingOptions & {
|
|
2720
|
-
|
|
2721
|
-
|
|
2852
|
+
flag?: string | undefined;
|
|
2853
|
+
})
|
|
2722
2854
|
| BufferEncoding
|
|
2723
|
-
| null
|
|
2855
|
+
| null,
|
|
2724
2856
|
): string | Buffer;
|
|
2725
2857
|
export type WriteFileOptions =
|
|
2726
|
-
| (
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2858
|
+
| (
|
|
2859
|
+
& ObjectEncodingOptions
|
|
2860
|
+
& Abortable
|
|
2861
|
+
& {
|
|
2862
|
+
mode?: Mode | undefined;
|
|
2863
|
+
flag?: string | undefined;
|
|
2864
|
+
}
|
|
2865
|
+
)
|
|
2731
2866
|
| BufferEncoding
|
|
2732
2867
|
| null;
|
|
2733
2868
|
/**
|
|
@@ -2791,14 +2926,23 @@ declare module 'node:fs' {
|
|
|
2791
2926
|
* @since v0.1.29
|
|
2792
2927
|
* @param file filename or file descriptor
|
|
2793
2928
|
*/
|
|
2794
|
-
export function writeFile(
|
|
2929
|
+
export function writeFile(
|
|
2930
|
+
file: PathOrFileDescriptor,
|
|
2931
|
+
data: string | NodeJS.ArrayBufferView,
|
|
2932
|
+
options: WriteFileOptions,
|
|
2933
|
+
callback: NoParamCallback,
|
|
2934
|
+
): void;
|
|
2795
2935
|
/**
|
|
2796
2936
|
* Asynchronously writes data to a file, replacing the file if it already exists.
|
|
2797
2937
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2798
2938
|
* If a file descriptor is provided, the underlying file will _not_ be closed automatically.
|
|
2799
2939
|
* @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
|
|
2800
2940
|
*/
|
|
2801
|
-
export function writeFile(
|
|
2941
|
+
export function writeFile(
|
|
2942
|
+
path: PathOrFileDescriptor,
|
|
2943
|
+
data: string | NodeJS.ArrayBufferView,
|
|
2944
|
+
callback: NoParamCallback,
|
|
2945
|
+
): void;
|
|
2802
2946
|
export namespace writeFile {
|
|
2803
2947
|
/**
|
|
2804
2948
|
* Asynchronously writes data to a file, replacing the file if it already exists.
|
|
@@ -2812,7 +2956,11 @@ declare module 'node:fs' {
|
|
|
2812
2956
|
* If `mode` is a string, it is parsed as an octal integer.
|
|
2813
2957
|
* If `flag` is not supplied, the default of `'w'` is used.
|
|
2814
2958
|
*/
|
|
2815
|
-
function __promisify__(
|
|
2959
|
+
function __promisify__(
|
|
2960
|
+
path: PathOrFileDescriptor,
|
|
2961
|
+
data: string | NodeJS.ArrayBufferView,
|
|
2962
|
+
options?: WriteFileOptions,
|
|
2963
|
+
): Promise<void>;
|
|
2816
2964
|
}
|
|
2817
2965
|
/**
|
|
2818
2966
|
* Returns `undefined`.
|
|
@@ -2824,7 +2972,11 @@ declare module 'node:fs' {
|
|
|
2824
2972
|
* @since v0.1.29
|
|
2825
2973
|
* @param file filename or file descriptor
|
|
2826
2974
|
*/
|
|
2827
|
-
export function writeFileSync(
|
|
2975
|
+
export function writeFileSync(
|
|
2976
|
+
file: PathOrFileDescriptor,
|
|
2977
|
+
data: string | NodeJS.ArrayBufferView,
|
|
2978
|
+
options?: WriteFileOptions,
|
|
2979
|
+
): void;
|
|
2828
2980
|
/**
|
|
2829
2981
|
* Asynchronously append data to a file, creating the file if it does not yet
|
|
2830
2982
|
* exist. `data` can be a string or a `Buffer`.
|
|
@@ -2878,7 +3030,12 @@ declare module 'node:fs' {
|
|
|
2878
3030
|
* @since v0.6.7
|
|
2879
3031
|
* @param path filename or file descriptor
|
|
2880
3032
|
*/
|
|
2881
|
-
export function appendFile(
|
|
3033
|
+
export function appendFile(
|
|
3034
|
+
path: PathOrFileDescriptor,
|
|
3035
|
+
data: string | Uint8Array,
|
|
3036
|
+
options: WriteFileOptions,
|
|
3037
|
+
callback: NoParamCallback,
|
|
3038
|
+
): void;
|
|
2882
3039
|
/**
|
|
2883
3040
|
* Asynchronously append data to a file, creating the file if it does not exist.
|
|
2884
3041
|
* @param file A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -2899,7 +3056,11 @@ declare module 'node:fs' {
|
|
|
2899
3056
|
* If `mode` is a string, it is parsed as an octal integer.
|
|
2900
3057
|
* If `flag` is not supplied, the default of `'a'` is used.
|
|
2901
3058
|
*/
|
|
2902
|
-
function __promisify__(
|
|
3059
|
+
function __promisify__(
|
|
3060
|
+
file: PathOrFileDescriptor,
|
|
3061
|
+
data: string | Uint8Array,
|
|
3062
|
+
options?: WriteFileOptions,
|
|
3063
|
+
): Promise<void>;
|
|
2903
3064
|
}
|
|
2904
3065
|
/**
|
|
2905
3066
|
* Synchronously append data to a file, creating the file if it does not yet
|
|
@@ -2948,7 +3109,11 @@ declare module 'node:fs' {
|
|
|
2948
3109
|
* @since v0.6.7
|
|
2949
3110
|
* @param path filename or file descriptor
|
|
2950
3111
|
*/
|
|
2951
|
-
export function appendFileSync(
|
|
3112
|
+
export function appendFileSync(
|
|
3113
|
+
path: PathOrFileDescriptor,
|
|
3114
|
+
data: string | Uint8Array,
|
|
3115
|
+
options?: WriteFileOptions,
|
|
3116
|
+
): void;
|
|
2952
3117
|
/**
|
|
2953
3118
|
* Watch for changes on `filename`. The callback `listener` will be called each
|
|
2954
3119
|
* time the file is accessed.
|
|
@@ -3050,19 +3215,19 @@ declare module 'node:fs' {
|
|
|
3050
3215
|
filename: PathLike,
|
|
3051
3216
|
options:
|
|
3052
3217
|
| (WatchFileOptions & {
|
|
3053
|
-
|
|
3054
|
-
|
|
3218
|
+
bigint?: false | undefined;
|
|
3219
|
+
})
|
|
3055
3220
|
| undefined,
|
|
3056
|
-
listener: StatsListener
|
|
3221
|
+
listener: StatsListener,
|
|
3057
3222
|
): StatWatcher;
|
|
3058
3223
|
export function watchFile(
|
|
3059
3224
|
filename: PathLike,
|
|
3060
3225
|
options:
|
|
3061
3226
|
| (WatchFileOptions & {
|
|
3062
|
-
|
|
3063
|
-
|
|
3227
|
+
bigint: true;
|
|
3228
|
+
})
|
|
3064
3229
|
| undefined,
|
|
3065
|
-
listener: BigIntStatsListener
|
|
3230
|
+
listener: BigIntStatsListener,
|
|
3066
3231
|
): StatWatcher;
|
|
3067
3232
|
/**
|
|
3068
3233
|
* Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
|
|
@@ -3084,11 +3249,11 @@ declare module 'node:fs' {
|
|
|
3084
3249
|
export function unwatchFile(filename: PathLike, listener?: StatsListener): void;
|
|
3085
3250
|
export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void;
|
|
3086
3251
|
export interface WatchOptions extends Abortable {
|
|
3087
|
-
encoding?: BufferEncoding |
|
|
3252
|
+
encoding?: BufferEncoding | "buffer" | undefined;
|
|
3088
3253
|
persistent?: boolean | undefined;
|
|
3089
3254
|
recursive?: boolean | undefined;
|
|
3090
3255
|
}
|
|
3091
|
-
export type WatchEventType =
|
|
3256
|
+
export type WatchEventType = "rename" | "change";
|
|
3092
3257
|
export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
|
|
3093
3258
|
export type StatsListener = (curr: Stats, prev: Stats) => void;
|
|
3094
3259
|
export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
|
|
@@ -3116,10 +3281,10 @@ declare module 'node:fs' {
|
|
|
3116
3281
|
filename: PathLike,
|
|
3117
3282
|
options:
|
|
3118
3283
|
| (WatchOptions & {
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
|
3122
|
-
listener?: WatchListener<Buffer
|
|
3284
|
+
encoding: "buffer";
|
|
3285
|
+
})
|
|
3286
|
+
| "buffer",
|
|
3287
|
+
listener?: WatchListener<Buffer>,
|
|
3123
3288
|
): FSWatcher;
|
|
3124
3289
|
/**
|
|
3125
3290
|
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
|
@@ -3129,7 +3294,11 @@ declare module 'node:fs' {
|
|
|
3129
3294
|
* If `persistent` is not supplied, the default of `true` is used.
|
|
3130
3295
|
* If `recursive` is not supplied, the default of `false` is used.
|
|
3131
3296
|
*/
|
|
3132
|
-
export function watch(
|
|
3297
|
+
export function watch(
|
|
3298
|
+
filename: PathLike,
|
|
3299
|
+
options?: WatchOptions | BufferEncoding | null,
|
|
3300
|
+
listener?: WatchListener<string>,
|
|
3301
|
+
): FSWatcher;
|
|
3133
3302
|
/**
|
|
3134
3303
|
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
|
3135
3304
|
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -3138,7 +3307,11 @@ declare module 'node:fs' {
|
|
|
3138
3307
|
* If `persistent` is not supplied, the default of `true` is used.
|
|
3139
3308
|
* If `recursive` is not supplied, the default of `false` is used.
|
|
3140
3309
|
*/
|
|
3141
|
-
export function watch(
|
|
3310
|
+
export function watch(
|
|
3311
|
+
filename: PathLike,
|
|
3312
|
+
options: WatchOptions | string,
|
|
3313
|
+
listener?: WatchListener<string | Buffer>,
|
|
3314
|
+
): FSWatcher;
|
|
3142
3315
|
/**
|
|
3143
3316
|
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
|
3144
3317
|
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -3854,19 +4027,27 @@ declare module 'node:fs' {
|
|
|
3854
4027
|
* @since v12.9.0
|
|
3855
4028
|
* @param [position='null']
|
|
3856
4029
|
*/
|
|
3857
|
-
export function writev(
|
|
4030
|
+
export function writev(
|
|
4031
|
+
fd: number,
|
|
4032
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
4033
|
+
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
4034
|
+
): void;
|
|
3858
4035
|
export function writev(
|
|
3859
4036
|
fd: number,
|
|
3860
4037
|
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
3861
4038
|
position: number,
|
|
3862
|
-
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
4039
|
+
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
3863
4040
|
): void;
|
|
3864
4041
|
export interface WriteVResult {
|
|
3865
4042
|
bytesWritten: number;
|
|
3866
4043
|
buffers: NodeJS.ArrayBufferView[];
|
|
3867
4044
|
}
|
|
3868
4045
|
export namespace writev {
|
|
3869
|
-
function __promisify__(
|
|
4046
|
+
function __promisify__(
|
|
4047
|
+
fd: number,
|
|
4048
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
4049
|
+
position?: number,
|
|
4050
|
+
): Promise<WriteVResult>;
|
|
3870
4051
|
}
|
|
3871
4052
|
/**
|
|
3872
4053
|
* For detailed information, see the documentation of the asynchronous version of
|
|
@@ -3891,19 +4072,27 @@ declare module 'node:fs' {
|
|
|
3891
4072
|
* @since v13.13.0, v12.17.0
|
|
3892
4073
|
* @param [position='null']
|
|
3893
4074
|
*/
|
|
3894
|
-
export function readv(
|
|
4075
|
+
export function readv(
|
|
4076
|
+
fd: number,
|
|
4077
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
4078
|
+
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
4079
|
+
): void;
|
|
3895
4080
|
export function readv(
|
|
3896
4081
|
fd: number,
|
|
3897
4082
|
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
3898
4083
|
position: number,
|
|
3899
|
-
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
4084
|
+
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
3900
4085
|
): void;
|
|
3901
4086
|
export interface ReadVResult {
|
|
3902
4087
|
bytesRead: number;
|
|
3903
4088
|
buffers: NodeJS.ArrayBufferView[];
|
|
3904
4089
|
}
|
|
3905
4090
|
export namespace readv {
|
|
3906
|
-
function __promisify__(
|
|
4091
|
+
function __promisify__(
|
|
4092
|
+
fd: number,
|
|
4093
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
4094
|
+
position?: number,
|
|
4095
|
+
): Promise<ReadVResult>;
|
|
3907
4096
|
}
|
|
3908
4097
|
/**
|
|
3909
4098
|
* For detailed information, see the documentation of the asynchronous version of
|
|
@@ -3983,7 +4172,11 @@ declare module 'node:fs' {
|
|
|
3983
4172
|
* @since v12.12.0
|
|
3984
4173
|
*/
|
|
3985
4174
|
export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
|
|
3986
|
-
export function opendir(
|
|
4175
|
+
export function opendir(
|
|
4176
|
+
path: PathLike,
|
|
4177
|
+
options: OpenDirOptions,
|
|
4178
|
+
cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void,
|
|
4179
|
+
): void;
|
|
3987
4180
|
export namespace opendir {
|
|
3988
4181
|
function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
|
|
3989
4182
|
}
|
|
@@ -4067,8 +4260,17 @@ declare module 'node:fs' {
|
|
|
4067
4260
|
* @param src source path to copy.
|
|
4068
4261
|
* @param dest destination path to copy to.
|
|
4069
4262
|
*/
|
|
4070
|
-
export function cp(
|
|
4071
|
-
|
|
4263
|
+
export function cp(
|
|
4264
|
+
source: string | URL,
|
|
4265
|
+
destination: string | URL,
|
|
4266
|
+
callback: (err: NodeJS.ErrnoException | null) => void,
|
|
4267
|
+
): void;
|
|
4268
|
+
export function cp(
|
|
4269
|
+
source: string | URL,
|
|
4270
|
+
destination: string | URL,
|
|
4271
|
+
opts: CopyOptions,
|
|
4272
|
+
callback: (err: NodeJS.ErrnoException | null) => void,
|
|
4273
|
+
): void;
|
|
4072
4274
|
/**
|
|
4073
4275
|
* Synchronously copies the entire directory structure from `src` to `dest`,
|
|
4074
4276
|
* including subdirectories and files.
|
|
@@ -4082,6 +4284,6 @@ declare module 'node:fs' {
|
|
|
4082
4284
|
*/
|
|
4083
4285
|
export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void;
|
|
4084
4286
|
}
|
|
4085
|
-
declare module
|
|
4086
|
-
export * from
|
|
4287
|
+
declare module "node:fs" {
|
|
4288
|
+
export * from "fs";
|
|
4087
4289
|
}
|