@types/node 8.10.45 → 8.10.46
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 v8/README.md +1 -1
- node v8/index.d.ts +115 -115
- node v8/package.json +2 -2
node v8/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js ( http://nodejs.org/ ).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v8
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated: Fri,
|
|
11
|
+
* Last updated: Fri, 19 Apr 2019 19:51:05 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
|
|
14
14
|
|
node v8/index.d.ts
CHANGED
|
@@ -2473,11 +2473,11 @@ declare module "dns" {
|
|
|
2473
2473
|
family: number;
|
|
2474
2474
|
}
|
|
2475
2475
|
|
|
2476
|
-
export function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
|
|
2477
|
-
export function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
|
|
2478
|
-
export function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException, addresses: LookupAddress[]) => void): void;
|
|
2479
|
-
export function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException, address: string | LookupAddress[], family: number) => void): void;
|
|
2480
|
-
export function lookup(hostname: string, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
|
|
2476
|
+
export function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
|
2477
|
+
export function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
|
2478
|
+
export function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void;
|
|
2479
|
+
export function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void;
|
|
2480
|
+
export function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
|
2481
2481
|
|
|
2482
2482
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
2483
2483
|
export namespace lookup {
|
|
@@ -2486,7 +2486,7 @@ declare module "dns" {
|
|
|
2486
2486
|
export function __promisify__(hostname: string, options?: LookupOptions | number): Promise<{ address: string | LookupAddress[], family?: number }>;
|
|
2487
2487
|
}
|
|
2488
2488
|
|
|
2489
|
-
export function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException, hostname: string, service: string) => void): void;
|
|
2489
|
+
export function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void;
|
|
2490
2490
|
|
|
2491
2491
|
export namespace lookupService {
|
|
2492
2492
|
export function __promisify__(address: string, port: number): Promise<{ hostname: string, service: string }>;
|
|
@@ -2591,19 +2591,19 @@ declare module "dns" {
|
|
|
2591
2591
|
AnySrvRecord |
|
|
2592
2592
|
AnyTxtRecord;
|
|
2593
2593
|
|
|
2594
|
-
export function resolve(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2595
|
-
export function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2596
|
-
export function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2597
|
-
export function resolve(hostname: string, rrtype: "ANY", callback: (err: NodeJS.ErrnoException, addresses: AnyRecord[]) => void): void;
|
|
2598
|
-
export function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2599
|
-
export function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException, addresses: MxRecord[]) => void): void;
|
|
2600
|
-
export function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException, addresses: NaptrRecord[]) => void): void;
|
|
2601
|
-
export function resolve(hostname: string, rrtype: "NS", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2602
|
-
export function resolve(hostname: string, rrtype: "PTR", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2603
|
-
export function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException, addresses: SoaRecord) => void): void;
|
|
2604
|
-
export function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException, addresses: SrvRecord[]) => void): void;
|
|
2605
|
-
export function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void;
|
|
2606
|
-
export function resolve(hostname: string, rrtype: string, callback: (err: NodeJS.ErrnoException, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]) => void): void;
|
|
2594
|
+
export function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2595
|
+
export function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2596
|
+
export function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2597
|
+
export function resolve(hostname: string, rrtype: "ANY", callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
|
|
2598
|
+
export function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2599
|
+
export function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
|
|
2600
|
+
export function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
|
|
2601
|
+
export function resolve(hostname: string, rrtype: "NS", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2602
|
+
export function resolve(hostname: string, rrtype: "PTR", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2603
|
+
export function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void;
|
|
2604
|
+
export function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
|
|
2605
|
+
export function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
|
2606
|
+
export function resolve(hostname: string, rrtype: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]) => void): void;
|
|
2607
2607
|
|
|
2608
2608
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
2609
2609
|
export namespace resolve {
|
|
@@ -2617,9 +2617,9 @@ declare module "dns" {
|
|
|
2617
2617
|
export function __promisify__(hostname: string, rrtype: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
|
2618
2618
|
}
|
|
2619
2619
|
|
|
2620
|
-
export function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2621
|
-
export function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException, addresses: RecordWithTtl[]) => void): void;
|
|
2622
|
-
export function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException, addresses: string[] | RecordWithTtl[]) => void): void;
|
|
2620
|
+
export function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2621
|
+
export function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
|
|
2622
|
+
export function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
|
|
2623
2623
|
|
|
2624
2624
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
2625
2625
|
export namespace resolve4 {
|
|
@@ -2628,9 +2628,9 @@ declare module "dns" {
|
|
|
2628
2628
|
export function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
2629
2629
|
}
|
|
2630
2630
|
|
|
2631
|
-
export function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2632
|
-
export function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException, addresses: RecordWithTtl[]) => void): void;
|
|
2633
|
-
export function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException, addresses: string[] | RecordWithTtl[]) => void): void;
|
|
2631
|
+
export function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2632
|
+
export function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
|
|
2633
|
+
export function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
|
|
2634
2634
|
|
|
2635
2635
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
2636
2636
|
export namespace resolve6 {
|
|
@@ -2639,52 +2639,52 @@ declare module "dns" {
|
|
|
2639
2639
|
export function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
2640
2640
|
}
|
|
2641
2641
|
|
|
2642
|
-
export function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2642
|
+
export function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2643
2643
|
export namespace resolveCname {
|
|
2644
2644
|
export function __promisify__(hostname: string): Promise<string[]>;
|
|
2645
2645
|
}
|
|
2646
2646
|
|
|
2647
|
-
export function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: MxRecord[]) => void): void;
|
|
2647
|
+
export function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
|
|
2648
2648
|
export namespace resolveMx {
|
|
2649
2649
|
export function __promisify__(hostname: string): Promise<MxRecord[]>;
|
|
2650
2650
|
}
|
|
2651
2651
|
|
|
2652
|
-
export function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: NaptrRecord[]) => void): void;
|
|
2652
|
+
export function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
|
|
2653
2653
|
export namespace resolveNaptr {
|
|
2654
2654
|
export function __promisify__(hostname: string): Promise<NaptrRecord[]>;
|
|
2655
2655
|
}
|
|
2656
2656
|
|
|
2657
|
-
export function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2657
|
+
export function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2658
2658
|
export namespace resolveNs {
|
|
2659
2659
|
export function __promisify__(hostname: string): Promise<string[]>;
|
|
2660
2660
|
}
|
|
2661
2661
|
|
|
2662
|
-
export function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
|
|
2662
|
+
export function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
2663
2663
|
export namespace resolvePtr {
|
|
2664
2664
|
export function __promisify__(hostname: string): Promise<string[]>;
|
|
2665
2665
|
}
|
|
2666
2666
|
|
|
2667
|
-
export function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException, address: SoaRecord) => void): void;
|
|
2667
|
+
export function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void;
|
|
2668
2668
|
export namespace resolveSoa {
|
|
2669
2669
|
export function __promisify__(hostname: string): Promise<SoaRecord>;
|
|
2670
2670
|
}
|
|
2671
2671
|
|
|
2672
|
-
export function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: SrvRecord[]) => void): void;
|
|
2672
|
+
export function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
|
|
2673
2673
|
export namespace resolveSrv {
|
|
2674
2674
|
export function __promisify__(hostname: string): Promise<SrvRecord[]>;
|
|
2675
2675
|
}
|
|
2676
2676
|
|
|
2677
|
-
export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void;
|
|
2677
|
+
export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
|
2678
2678
|
export namespace resolveTxt {
|
|
2679
2679
|
export function __promisify__(hostname: string): Promise<string[][]>;
|
|
2680
2680
|
}
|
|
2681
2681
|
|
|
2682
|
-
export function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: AnyRecord[]) => void): void;
|
|
2682
|
+
export function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
|
|
2683
2683
|
export namespace resolveAny {
|
|
2684
2684
|
export function __promisify__(hostname: string): Promise<AnyRecord[]>;
|
|
2685
2685
|
}
|
|
2686
2686
|
|
|
2687
|
-
export function reverse(ip: string, callback: (err: NodeJS.ErrnoException, hostnames: string[]) => void): void;
|
|
2687
|
+
export function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
|
|
2688
2688
|
export function setServers(servers: string[]): void;
|
|
2689
2689
|
export function getServers(): string[];
|
|
2690
2690
|
|
|
@@ -2739,7 +2739,7 @@ declare module "net" {
|
|
|
2739
2739
|
import * as events from "events";
|
|
2740
2740
|
import * as dns from "dns";
|
|
2741
2741
|
|
|
2742
|
-
type LookupFunction = (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void;
|
|
2742
|
+
type LookupFunction = (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null | null, address: string, family: number) => void) => void;
|
|
2743
2743
|
|
|
2744
2744
|
export interface SocketConstructorOpts {
|
|
2745
2745
|
fd?: number;
|
|
@@ -3008,7 +3008,7 @@ declare module "dgram" {
|
|
|
3008
3008
|
reuseAddr?: boolean;
|
|
3009
3009
|
recvBufferSize?: number;
|
|
3010
3010
|
sendBufferSize?: number;
|
|
3011
|
-
lookup?: (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void) => void;
|
|
3011
|
+
lookup?: (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void;
|
|
3012
3012
|
}
|
|
3013
3013
|
|
|
3014
3014
|
export function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
|
|
@@ -3219,7 +3219,7 @@ declare module "fs" {
|
|
|
3219
3219
|
* @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3220
3220
|
* URL support is _experimental_.
|
|
3221
3221
|
*/
|
|
3222
|
-
export function rename(oldPath: PathLike, newPath: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3222
|
+
export function rename(oldPath: PathLike, newPath: PathLike, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3223
3223
|
|
|
3224
3224
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3225
3225
|
export namespace rename {
|
|
@@ -3247,14 +3247,14 @@ declare module "fs" {
|
|
|
3247
3247
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3248
3248
|
* @param len If not specified, defaults to `0`.
|
|
3249
3249
|
*/
|
|
3250
|
-
export function truncate(path: PathLike, len: number | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3250
|
+
export function truncate(path: PathLike, len: number | undefined | null, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3251
3251
|
|
|
3252
3252
|
/**
|
|
3253
3253
|
* Asynchronous truncate(2) - Truncate a file to a specified length.
|
|
3254
3254
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3255
3255
|
* URL support is _experimental_.
|
|
3256
3256
|
*/
|
|
3257
|
-
export function truncate(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3257
|
+
export function truncate(path: PathLike, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3258
3258
|
|
|
3259
3259
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3260
3260
|
export namespace truncate {
|
|
@@ -3278,13 +3278,13 @@ declare module "fs" {
|
|
|
3278
3278
|
* @param fd A file descriptor.
|
|
3279
3279
|
* @param len If not specified, defaults to `0`.
|
|
3280
3280
|
*/
|
|
3281
|
-
export function ftruncate(fd: number, len: number | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3281
|
+
export function ftruncate(fd: number, len: number | undefined | null, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3282
3282
|
|
|
3283
3283
|
/**
|
|
3284
3284
|
* Asynchronous ftruncate(2) - Truncate a file to a specified length.
|
|
3285
3285
|
* @param fd A file descriptor.
|
|
3286
3286
|
*/
|
|
3287
|
-
export function ftruncate(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3287
|
+
export function ftruncate(fd: number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3288
3288
|
|
|
3289
3289
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3290
3290
|
export namespace ftruncate {
|
|
@@ -3307,7 +3307,7 @@ declare module "fs" {
|
|
|
3307
3307
|
* Asynchronous chown(2) - Change ownership of a file.
|
|
3308
3308
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3309
3309
|
*/
|
|
3310
|
-
export function chown(path: PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3310
|
+
export function chown(path: PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3311
3311
|
|
|
3312
3312
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3313
3313
|
export namespace chown {
|
|
@@ -3328,7 +3328,7 @@ declare module "fs" {
|
|
|
3328
3328
|
* Asynchronous fchown(2) - Change ownership of a file.
|
|
3329
3329
|
* @param fd A file descriptor.
|
|
3330
3330
|
*/
|
|
3331
|
-
export function fchown(fd: number, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3331
|
+
export function fchown(fd: number, uid: number, gid: number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3332
3332
|
|
|
3333
3333
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3334
3334
|
export namespace fchown {
|
|
@@ -3349,7 +3349,7 @@ declare module "fs" {
|
|
|
3349
3349
|
* Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links.
|
|
3350
3350
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3351
3351
|
*/
|
|
3352
|
-
export function lchown(path: PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3352
|
+
export function lchown(path: PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3353
3353
|
|
|
3354
3354
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3355
3355
|
export namespace lchown {
|
|
@@ -3371,7 +3371,7 @@ declare module "fs" {
|
|
|
3371
3371
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3372
3372
|
* @param mode A file mode. If a string is passed, it is parsed as an octal integer.
|
|
3373
3373
|
*/
|
|
3374
|
-
export function chmod(path: PathLike, mode: string | number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3374
|
+
export function chmod(path: PathLike, mode: string | number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3375
3375
|
|
|
3376
3376
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3377
3377
|
export namespace chmod {
|
|
@@ -3395,7 +3395,7 @@ declare module "fs" {
|
|
|
3395
3395
|
* @param fd A file descriptor.
|
|
3396
3396
|
* @param mode A file mode. If a string is passed, it is parsed as an octal integer.
|
|
3397
3397
|
*/
|
|
3398
|
-
export function fchmod(fd: number, mode: string | number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3398
|
+
export function fchmod(fd: number, mode: string | number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3399
3399
|
|
|
3400
3400
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3401
3401
|
export namespace fchmod {
|
|
@@ -3419,7 +3419,7 @@ declare module "fs" {
|
|
|
3419
3419
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3420
3420
|
* @param mode A file mode. If a string is passed, it is parsed as an octal integer.
|
|
3421
3421
|
*/
|
|
3422
|
-
export function lchmod(path: PathLike, mode: string | number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3422
|
+
export function lchmod(path: PathLike, mode: string | number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3423
3423
|
|
|
3424
3424
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3425
3425
|
export namespace lchmod {
|
|
@@ -3442,7 +3442,7 @@ declare module "fs" {
|
|
|
3442
3442
|
* Asynchronous stat(2) - Get file status.
|
|
3443
3443
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3444
3444
|
*/
|
|
3445
|
-
export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException, stats: Stats) => void): void;
|
|
3445
|
+
export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
3446
3446
|
|
|
3447
3447
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3448
3448
|
export namespace stat {
|
|
@@ -3463,7 +3463,7 @@ declare module "fs" {
|
|
|
3463
3463
|
* Asynchronous fstat(2) - Get file status.
|
|
3464
3464
|
* @param fd A file descriptor.
|
|
3465
3465
|
*/
|
|
3466
|
-
export function fstat(fd: number, callback: (err: NodeJS.ErrnoException, stats: Stats) => void): void;
|
|
3466
|
+
export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
3467
3467
|
|
|
3468
3468
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3469
3469
|
export namespace fstat {
|
|
@@ -3484,7 +3484,7 @@ declare module "fs" {
|
|
|
3484
3484
|
* Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
|
|
3485
3485
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3486
3486
|
*/
|
|
3487
|
-
export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException, stats: Stats) => void): void;
|
|
3487
|
+
export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
3488
3488
|
|
|
3489
3489
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3490
3490
|
export namespace lstat {
|
|
@@ -3506,7 +3506,7 @@ declare module "fs" {
|
|
|
3506
3506
|
* @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3507
3507
|
* @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3508
3508
|
*/
|
|
3509
|
-
export function link(existingPath: PathLike, newPath: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3509
|
+
export function link(existingPath: PathLike, newPath: PathLike, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3510
3510
|
|
|
3511
3511
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3512
3512
|
export namespace link {
|
|
@@ -3532,14 +3532,14 @@ declare module "fs" {
|
|
|
3532
3532
|
* @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
|
|
3533
3533
|
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
|
3534
3534
|
*/
|
|
3535
|
-
export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3535
|
+
export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3536
3536
|
|
|
3537
3537
|
/**
|
|
3538
3538
|
* Asynchronous symlink(2) - Create a new symbolic link to an existing file.
|
|
3539
3539
|
* @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol.
|
|
3540
3540
|
* @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol.
|
|
3541
3541
|
*/
|
|
3542
|
-
export function symlink(target: PathLike, path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3542
|
+
export function symlink(target: PathLike, path: PathLike, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3543
3543
|
|
|
3544
3544
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3545
3545
|
export namespace symlink {
|
|
@@ -3569,27 +3569,27 @@ declare module "fs" {
|
|
|
3569
3569
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3570
3570
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3571
3571
|
*/
|
|
3572
|
-
export function readlink(path: PathLike, options: { encoding?: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException, linkString: string) => void): void;
|
|
3572
|
+
export function readlink(path: PathLike, options: { encoding?: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void;
|
|
3573
3573
|
|
|
3574
3574
|
/**
|
|
3575
3575
|
* Asynchronous readlink(2) - read value of a symbolic link.
|
|
3576
3576
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3577
3577
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3578
3578
|
*/
|
|
3579
|
-
export function readlink(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException, linkString: Buffer) => void): void;
|
|
3579
|
+
export function readlink(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void): void;
|
|
3580
3580
|
|
|
3581
3581
|
/**
|
|
3582
3582
|
* Asynchronous readlink(2) - read value of a symbolic link.
|
|
3583
3583
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3584
3584
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3585
3585
|
*/
|
|
3586
|
-
export function readlink(path: PathLike, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException, linkString: string | Buffer) => void): void;
|
|
3586
|
+
export function readlink(path: PathLike, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void): void;
|
|
3587
3587
|
|
|
3588
3588
|
/**
|
|
3589
3589
|
* Asynchronous readlink(2) - read value of a symbolic link.
|
|
3590
3590
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3591
3591
|
*/
|
|
3592
|
-
export function readlink(path: PathLike, callback: (err: NodeJS.ErrnoException, linkString: string) => void): void;
|
|
3592
|
+
export function readlink(path: PathLike, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void;
|
|
3593
3593
|
|
|
3594
3594
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3595
3595
|
export namespace readlink {
|
|
@@ -3641,27 +3641,27 @@ declare module "fs" {
|
|
|
3641
3641
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3642
3642
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3643
3643
|
*/
|
|
3644
|
-
export function realpath(path: PathLike, options: { encoding?: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => void): void;
|
|
3644
|
+
export function realpath(path: PathLike, options: { encoding?: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void;
|
|
3645
3645
|
|
|
3646
3646
|
/**
|
|
3647
3647
|
* Asynchronous realpath(3) - return the canonicalized absolute pathname.
|
|
3648
3648
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3649
3649
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3650
3650
|
*/
|
|
3651
|
-
export function realpath(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException, resolvedPath: Buffer) => void): void;
|
|
3651
|
+
export function realpath(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void;
|
|
3652
3652
|
|
|
3653
3653
|
/**
|
|
3654
3654
|
* Asynchronous realpath(3) - return the canonicalized absolute pathname.
|
|
3655
3655
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3656
3656
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3657
3657
|
*/
|
|
3658
|
-
export function realpath(path: PathLike, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException, resolvedPath: string | Buffer) => void): void;
|
|
3658
|
+
export function realpath(path: PathLike, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void): void;
|
|
3659
3659
|
|
|
3660
3660
|
/**
|
|
3661
3661
|
* Asynchronous realpath(3) - return the canonicalized absolute pathname.
|
|
3662
3662
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3663
3663
|
*/
|
|
3664
|
-
export function realpath(path: PathLike, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => void): void;
|
|
3664
|
+
export function realpath(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void;
|
|
3665
3665
|
|
|
3666
3666
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3667
3667
|
export namespace realpath {
|
|
@@ -3712,7 +3712,7 @@ declare module "fs" {
|
|
|
3712
3712
|
* Asynchronous unlink(2) - delete a name and possibly the file it refers to.
|
|
3713
3713
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3714
3714
|
*/
|
|
3715
|
-
export function unlink(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3715
|
+
export function unlink(path: PathLike, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3716
3716
|
|
|
3717
3717
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3718
3718
|
export namespace unlink {
|
|
@@ -3733,7 +3733,7 @@ declare module "fs" {
|
|
|
3733
3733
|
* Asynchronous rmdir(2) - delete a directory.
|
|
3734
3734
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3735
3735
|
*/
|
|
3736
|
-
export function rmdir(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3736
|
+
export function rmdir(path: PathLike, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3737
3737
|
|
|
3738
3738
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3739
3739
|
export namespace rmdir {
|
|
@@ -3755,13 +3755,13 @@ declare module "fs" {
|
|
|
3755
3755
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3756
3756
|
* @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
|
|
3757
3757
|
*/
|
|
3758
|
-
export function mkdir(path: PathLike, mode: number | string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3758
|
+
export function mkdir(path: PathLike, mode: number | string | undefined | null, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3759
3759
|
|
|
3760
3760
|
/**
|
|
3761
3761
|
* Asynchronous mkdir(2) - create a directory with a mode of `0o777`.
|
|
3762
3762
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3763
3763
|
*/
|
|
3764
|
-
export function mkdir(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3764
|
+
export function mkdir(path: PathLike, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3765
3765
|
|
|
3766
3766
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3767
3767
|
export namespace mkdir {
|
|
@@ -3785,27 +3785,27 @@ declare module "fs" {
|
|
|
3785
3785
|
* Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
|
|
3786
3786
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3787
3787
|
*/
|
|
3788
|
-
export function mkdtemp(prefix: string, options: { encoding?: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException, folder: string) => void): void;
|
|
3788
|
+
export function mkdtemp(prefix: string, options: { encoding?: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void;
|
|
3789
3789
|
|
|
3790
3790
|
/**
|
|
3791
3791
|
* Asynchronously creates a unique temporary directory.
|
|
3792
3792
|
* Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
|
|
3793
3793
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3794
3794
|
*/
|
|
3795
|
-
export function mkdtemp(prefix: string, options: "buffer" | { encoding: "buffer" }, callback: (err: NodeJS.ErrnoException, folder: Buffer) => void): void;
|
|
3795
|
+
export function mkdtemp(prefix: string, options: "buffer" | { encoding: "buffer" }, callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void): void;
|
|
3796
3796
|
|
|
3797
3797
|
/**
|
|
3798
3798
|
* Asynchronously creates a unique temporary directory.
|
|
3799
3799
|
* Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
|
|
3800
3800
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3801
3801
|
*/
|
|
3802
|
-
export function mkdtemp(prefix: string, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException, folder: string | Buffer) => void): void;
|
|
3802
|
+
export function mkdtemp(prefix: string, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void): void;
|
|
3803
3803
|
|
|
3804
3804
|
/**
|
|
3805
3805
|
* Asynchronously creates a unique temporary directory.
|
|
3806
3806
|
* Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
|
|
3807
3807
|
*/
|
|
3808
|
-
export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException, folder: string) => void): void;
|
|
3808
|
+
export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void;
|
|
3809
3809
|
|
|
3810
3810
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3811
3811
|
export namespace mkdtemp {
|
|
@@ -3857,27 +3857,27 @@ declare module "fs" {
|
|
|
3857
3857
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3858
3858
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3859
3859
|
*/
|
|
3860
|
-
export function readdir(path: PathLike, options: { encoding: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
|
|
3860
|
+
export function readdir(path: PathLike, options: { encoding: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException | null, files: string[]) => void): void;
|
|
3861
3861
|
|
|
3862
3862
|
/**
|
|
3863
3863
|
* Asynchronous readdir(3) - read a directory.
|
|
3864
3864
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3865
3865
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3866
3866
|
*/
|
|
3867
|
-
export function readdir(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException, files: Buffer[]) => void): void;
|
|
3867
|
+
export function readdir(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void): void;
|
|
3868
3868
|
|
|
3869
3869
|
/**
|
|
3870
3870
|
* Asynchronous readdir(3) - read a directory.
|
|
3871
3871
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3872
3872
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
3873
3873
|
*/
|
|
3874
|
-
export function readdir(path: PathLike, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException, files: string[] | Buffer[]) => void): void;
|
|
3874
|
+
export function readdir(path: PathLike, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void): void;
|
|
3875
3875
|
|
|
3876
3876
|
/**
|
|
3877
3877
|
* Asynchronous readdir(3) - read a directory.
|
|
3878
3878
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3879
3879
|
*/
|
|
3880
|
-
export function readdir(path: PathLike, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
|
|
3880
|
+
export function readdir(path: PathLike, callback: (err: NodeJS.ErrnoException | null, files: string[]) => void): void;
|
|
3881
3881
|
|
|
3882
3882
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3883
3883
|
export namespace readdir {
|
|
@@ -3928,7 +3928,7 @@ declare module "fs" {
|
|
|
3928
3928
|
* Asynchronous close(2) - close a file descriptor.
|
|
3929
3929
|
* @param fd A file descriptor.
|
|
3930
3930
|
*/
|
|
3931
|
-
export function close(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3931
|
+
export function close(fd: number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3932
3932
|
|
|
3933
3933
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3934
3934
|
export namespace close {
|
|
@@ -3950,13 +3950,13 @@ declare module "fs" {
|
|
|
3950
3950
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3951
3951
|
* @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`.
|
|
3952
3952
|
*/
|
|
3953
|
-
export function open(path: PathLike, flags: string | number, mode: string | number | undefined | null, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
|
|
3953
|
+
export function open(path: PathLike, flags: string | number, mode: string | number | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
3954
3954
|
|
|
3955
3955
|
/**
|
|
3956
3956
|
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
3957
3957
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3958
3958
|
*/
|
|
3959
|
-
export function open(path: PathLike, flags: string | number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
|
|
3959
|
+
export function open(path: PathLike, flags: string | number, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
3960
3960
|
|
|
3961
3961
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3962
3962
|
export namespace open {
|
|
@@ -3981,7 +3981,7 @@ declare module "fs" {
|
|
|
3981
3981
|
* @param atime The last access time. If a string is provided, it will be coerced to number.
|
|
3982
3982
|
* @param mtime The last modified time. If a string is provided, it will be coerced to number.
|
|
3983
3983
|
*/
|
|
3984
|
-
export function utimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
3984
|
+
export function utimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3985
3985
|
|
|
3986
3986
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
3987
3987
|
export namespace utimes {
|
|
@@ -4008,7 +4008,7 @@ declare module "fs" {
|
|
|
4008
4008
|
* @param atime The last access time. If a string is provided, it will be coerced to number.
|
|
4009
4009
|
* @param mtime The last modified time. If a string is provided, it will be coerced to number.
|
|
4010
4010
|
*/
|
|
4011
|
-
export function futimes(fd: number, atime: string | number | Date, mtime: string | number | Date, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4011
|
+
export function futimes(fd: number, atime: string | number | Date, mtime: string | number | Date, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4012
4012
|
|
|
4013
4013
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
4014
4014
|
export namespace futimes {
|
|
@@ -4033,7 +4033,7 @@ declare module "fs" {
|
|
|
4033
4033
|
* Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device.
|
|
4034
4034
|
* @param fd A file descriptor.
|
|
4035
4035
|
*/
|
|
4036
|
-
export function fsync(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4036
|
+
export function fsync(fd: number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4037
4037
|
|
|
4038
4038
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
4039
4039
|
export namespace fsync {
|
|
@@ -4057,7 +4057,7 @@ declare module "fs" {
|
|
|
4057
4057
|
* @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`.
|
|
4058
4058
|
* @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
|
|
4059
4059
|
*/
|
|
4060
|
-
export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number | undefined | null, length: number | undefined | null, position: number | undefined | null, callback: (err: NodeJS.ErrnoException, written: number, buffer: TBuffer) => void): void;
|
|
4060
|
+
export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number | undefined | null, length: number | undefined | null, position: number | undefined | null, callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void): void;
|
|
4061
4061
|
|
|
4062
4062
|
/**
|
|
4063
4063
|
* Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
|
|
@@ -4065,20 +4065,20 @@ declare module "fs" {
|
|
|
4065
4065
|
* @param offset The part of the buffer to be written. If not supplied, defaults to `0`.
|
|
4066
4066
|
* @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`.
|
|
4067
4067
|
*/
|
|
4068
|
-
export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number | undefined | null, length: number | undefined | null, callback: (err: NodeJS.ErrnoException, written: number, buffer: TBuffer) => void): void;
|
|
4068
|
+
export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number | undefined | null, length: number | undefined | null, callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void): void;
|
|
4069
4069
|
|
|
4070
4070
|
/**
|
|
4071
4071
|
* Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
|
|
4072
4072
|
* @param fd A file descriptor.
|
|
4073
4073
|
* @param offset The part of the buffer to be written. If not supplied, defaults to `0`.
|
|
4074
4074
|
*/
|
|
4075
|
-
export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number | undefined | null, callback: (err: NodeJS.ErrnoException, written: number, buffer: TBuffer) => void): void;
|
|
4075
|
+
export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number | undefined | null, callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void): void;
|
|
4076
4076
|
|
|
4077
4077
|
/**
|
|
4078
4078
|
* Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
|
|
4079
4079
|
* @param fd A file descriptor.
|
|
4080
4080
|
*/
|
|
4081
|
-
export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, callback: (err: NodeJS.ErrnoException, written: number, buffer: TBuffer) => void): void;
|
|
4081
|
+
export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void): void;
|
|
4082
4082
|
|
|
4083
4083
|
/**
|
|
4084
4084
|
* Asynchronously writes `string` to the file referenced by the supplied file descriptor.
|
|
@@ -4087,7 +4087,7 @@ declare module "fs" {
|
|
|
4087
4087
|
* @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
|
|
4088
4088
|
* @param encoding The expected string encoding.
|
|
4089
4089
|
*/
|
|
4090
|
-
export function write(fd: number, string: any, position: number | undefined | null, encoding: string | undefined | null, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
|
|
4090
|
+
export function write(fd: number, string: any, position: number | undefined | null, encoding: string | undefined | null, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void;
|
|
4091
4091
|
|
|
4092
4092
|
/**
|
|
4093
4093
|
* Asynchronously writes `string` to the file referenced by the supplied file descriptor.
|
|
@@ -4095,14 +4095,14 @@ declare module "fs" {
|
|
|
4095
4095
|
* @param string A string to write. If something other than a string is supplied it will be coerced to a string.
|
|
4096
4096
|
* @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
|
|
4097
4097
|
*/
|
|
4098
|
-
export function write(fd: number, string: any, position: number | undefined | null, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
|
|
4098
|
+
export function write(fd: number, string: any, position: number | undefined | null, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void;
|
|
4099
4099
|
|
|
4100
4100
|
/**
|
|
4101
4101
|
* Asynchronously writes `string` to the file referenced by the supplied file descriptor.
|
|
4102
4102
|
* @param fd A file descriptor.
|
|
4103
4103
|
* @param string A string to write. If something other than a string is supplied it will be coerced to a string.
|
|
4104
4104
|
*/
|
|
4105
|
-
export function write(fd: number, string: any, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
|
|
4105
|
+
export function write(fd: number, string: any, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void;
|
|
4106
4106
|
|
|
4107
4107
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
4108
4108
|
export namespace write {
|
|
@@ -4151,7 +4151,7 @@ declare module "fs" {
|
|
|
4151
4151
|
* @param length The number of bytes to read.
|
|
4152
4152
|
* @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position.
|
|
4153
4153
|
*/
|
|
4154
|
-
export function read<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number, length: number, position: number | null, callback?: (err: NodeJS.ErrnoException, bytesRead: number, buffer: TBuffer) => void): void;
|
|
4154
|
+
export function read<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number, length: number, position: number | null, callback?: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void): void;
|
|
4155
4155
|
|
|
4156
4156
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
4157
4157
|
export namespace read {
|
|
@@ -4182,7 +4182,7 @@ declare module "fs" {
|
|
|
4182
4182
|
* @param options An object that may contain an optional flag.
|
|
4183
4183
|
* If a flag is not provided, it defaults to `'r'`.
|
|
4184
4184
|
*/
|
|
4185
|
-
export function readFile(path: PathLike | number, options: { encoding?: null; flag?: string; } | undefined | null, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
|
|
4185
|
+
export function readFile(path: PathLike | number, options: { encoding?: null; flag?: string; } | undefined | null, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void;
|
|
4186
4186
|
|
|
4187
4187
|
/**
|
|
4188
4188
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -4192,7 +4192,7 @@ declare module "fs" {
|
|
|
4192
4192
|
* @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
|
|
4193
4193
|
* If a flag is not provided, it defaults to `'r'`.
|
|
4194
4194
|
*/
|
|
4195
|
-
export function readFile(path: PathLike | number, options: { encoding: string; flag?: string; } | string, callback: (err: NodeJS.ErrnoException, data: string) => void): void;
|
|
4195
|
+
export function readFile(path: PathLike | number, options: { encoding: string; flag?: string; } | string, callback: (err: NodeJS.ErrnoException | null, data: string) => void): void;
|
|
4196
4196
|
|
|
4197
4197
|
/**
|
|
4198
4198
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -4202,14 +4202,14 @@ declare module "fs" {
|
|
|
4202
4202
|
* @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
|
|
4203
4203
|
* If a flag is not provided, it defaults to `'r'`.
|
|
4204
4204
|
*/
|
|
4205
|
-
export function readFile(path: PathLike | number, options: { encoding?: string | null; flag?: string; } | string | undefined | null, callback: (err: NodeJS.ErrnoException, data: string | Buffer) => void): void;
|
|
4205
|
+
export function readFile(path: PathLike | number, options: { encoding?: string | null; flag?: string; } | string | undefined | null, callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void): void;
|
|
4206
4206
|
|
|
4207
4207
|
/**
|
|
4208
4208
|
* Asynchronously reads the entire contents of a file.
|
|
4209
4209
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
4210
4210
|
* If a file descriptor is provided, the underlying file will _not_ be closed automatically.
|
|
4211
4211
|
*/
|
|
4212
|
-
export function readFile(path: PathLike | number, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
|
|
4212
|
+
export function readFile(path: PathLike | number, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void;
|
|
4213
4213
|
|
|
4214
4214
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
4215
4215
|
export namespace readFile {
|
|
@@ -4284,7 +4284,7 @@ declare module "fs" {
|
|
|
4284
4284
|
* If `mode` is a string, it is parsed as an octal integer.
|
|
4285
4285
|
* If `flag` is not supplied, the default of `'w'` is used.
|
|
4286
4286
|
*/
|
|
4287
|
-
export function writeFile(path: PathLike | number, data: any, options: { encoding?: string | null; mode?: number | string; flag?: string; } | string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4287
|
+
export function writeFile(path: PathLike | number, data: any, options: { encoding?: string | null; mode?: number | string; flag?: string; } | string | undefined | null, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4288
4288
|
|
|
4289
4289
|
/**
|
|
4290
4290
|
* Asynchronously writes data to a file, replacing the file if it already exists.
|
|
@@ -4293,7 +4293,7 @@ declare module "fs" {
|
|
|
4293
4293
|
* If a file descriptor is provided, the underlying file will _not_ be closed automatically.
|
|
4294
4294
|
* @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
|
|
4295
4295
|
*/
|
|
4296
|
-
export function writeFile(path: PathLike | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4296
|
+
export function writeFile(path: PathLike | number, data: any, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4297
4297
|
|
|
4298
4298
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
4299
4299
|
export namespace writeFile {
|
|
@@ -4338,7 +4338,7 @@ declare module "fs" {
|
|
|
4338
4338
|
* If `mode` is a string, it is parsed as an octal integer.
|
|
4339
4339
|
* If `flag` is not supplied, the default of `'a'` is used.
|
|
4340
4340
|
*/
|
|
4341
|
-
export function appendFile(file: PathLike | number, data: any, options: { encoding?: string | null, mode?: string | number, flag?: string } | string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4341
|
+
export function appendFile(file: PathLike | number, data: any, options: { encoding?: string | null, mode?: string | number, flag?: string } | string | undefined | null, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4342
4342
|
|
|
4343
4343
|
/**
|
|
4344
4344
|
* Asynchronously append data to a file, creating the file if it does not exist.
|
|
@@ -4347,7 +4347,7 @@ declare module "fs" {
|
|
|
4347
4347
|
* If a file descriptor is provided, the underlying file will _not_ be closed automatically.
|
|
4348
4348
|
* @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
|
|
4349
4349
|
*/
|
|
4350
|
-
export function appendFile(file: PathLike | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4350
|
+
export function appendFile(file: PathLike | number, data: any, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4351
4351
|
|
|
4352
4352
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
4353
4353
|
export namespace appendFile {
|
|
@@ -4601,14 +4601,14 @@ declare module "fs" {
|
|
|
4601
4601
|
* @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
4602
4602
|
* URL support is _experimental_.
|
|
4603
4603
|
*/
|
|
4604
|
-
export function access(path: PathLike, mode: number | undefined, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4604
|
+
export function access(path: PathLike, mode: number | undefined, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4605
4605
|
|
|
4606
4606
|
/**
|
|
4607
4607
|
* Asynchronously tests a user's permissions for the file specified by path.
|
|
4608
4608
|
* @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
4609
4609
|
* URL support is _experimental_.
|
|
4610
4610
|
*/
|
|
4611
|
-
export function access(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4611
|
+
export function access(path: PathLike, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4612
4612
|
|
|
4613
4613
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
4614
4614
|
export namespace access {
|
|
@@ -4661,7 +4661,7 @@ declare module "fs" {
|
|
|
4661
4661
|
* Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
|
|
4662
4662
|
* @param fd A file descriptor.
|
|
4663
4663
|
*/
|
|
4664
|
-
export function fdatasync(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4664
|
+
export function fdatasync(fd: number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4665
4665
|
|
|
4666
4666
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
4667
4667
|
export namespace fdatasync {
|
|
@@ -4687,7 +4687,7 @@ declare module "fs" {
|
|
|
4687
4687
|
* @param src A path to the source file.
|
|
4688
4688
|
* @param dest A path to the destination file.
|
|
4689
4689
|
*/
|
|
4690
|
-
export function copyFile(src: PathLike, dest: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4690
|
+
export function copyFile(src: PathLike, dest: PathLike, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4691
4691
|
/**
|
|
4692
4692
|
* Asynchronously copies src to dest. By default, dest is overwritten if it already exists.
|
|
4693
4693
|
* No arguments other than a possible exception are given to the callback function.
|
|
@@ -4698,7 +4698,7 @@ declare module "fs" {
|
|
|
4698
4698
|
* @param dest A path to the destination file.
|
|
4699
4699
|
* @param flags An integer that specifies the behavior of the copy operation. The only supported flag is fs.constants.COPYFILE_EXCL, which causes the copy operation to fail if dest already exists.
|
|
4700
4700
|
*/
|
|
4701
|
-
export function copyFile(src: PathLike, dest: PathLike, flags: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
|
4701
|
+
export function copyFile(src: PathLike, dest: PathLike, flags: number, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
4702
4702
|
|
|
4703
4703
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
4704
4704
|
export namespace copyFile {
|
|
@@ -5712,33 +5712,33 @@ declare module "util" {
|
|
|
5712
5712
|
}
|
|
5713
5713
|
|
|
5714
5714
|
export function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5715
|
-
export function callbackify<TResult>(fn: () => Promise<TResult>): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5715
|
+
export function callbackify<TResult>(fn: () => Promise<TResult>): (callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
5716
5716
|
export function callbackify<T1>(fn: (arg1: T1) => Promise<void>): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5717
|
-
export function callbackify<T1, TResult>(fn: (arg1: T1) => Promise<TResult>): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5717
|
+
export function callbackify<T1, TResult>(fn: (arg1: T1) => Promise<TResult>): (arg1: T1, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
5718
5718
|
export function callbackify<T1, T2>(fn: (arg1: T1, arg2: T2) => Promise<void>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5719
|
-
export function callbackify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2) => Promise<TResult>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5719
|
+
export function callbackify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2) => Promise<TResult>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
5720
5720
|
export function callbackify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5721
|
-
export function callbackify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5721
|
+
export function callbackify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
5722
5722
|
export function callbackify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5723
|
-
export function callbackify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5723
|
+
export function callbackify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
5724
5724
|
export function callbackify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5725
|
-
export function callbackify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5725
|
+
export function callbackify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
5726
5726
|
export function callbackify<T1, T2, T3, T4, T5, T6>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5727
|
-
export function callbackify<T1, T2, T3, T4, T5, T6, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5727
|
+
export function callbackify<T1, T2, T3, T4, T5, T6, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
5728
5728
|
|
|
5729
5729
|
export function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
|
|
5730
5730
|
export function promisify<TResult>(fn: (callback: (err: Error | null, result: TResult) => void) => void): () => Promise<TResult>;
|
|
5731
|
-
export function promisify(fn: (callback: (err?: Error
|
|
5731
|
+
export function promisify(fn: (callback: (err?: Error) => void) => void): () => Promise<void>;
|
|
5732
5732
|
export function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
|
|
5733
|
-
export function promisify<T1>(fn: (arg1: T1, callback: (err?: Error
|
|
5733
|
+
export function promisify<T1>(fn: (arg1: T1, callback: (err?: Error) => void) => void): (arg1: T1) => Promise<void>;
|
|
5734
5734
|
export function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
|
|
5735
|
-
export function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?: Error
|
|
5735
|
+
export function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?: Error) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
|
|
5736
5736
|
export function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
|
|
5737
|
-
export function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: Error
|
|
5737
|
+
export function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: Error) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
|
|
5738
5738
|
export function promisify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
|
|
5739
|
-
export function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: Error
|
|
5739
|
+
export function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: Error) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
|
|
5740
5740
|
export function promisify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
|
|
5741
|
-
export function promisify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: Error
|
|
5741
|
+
export function promisify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: Error) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
5742
5742
|
export function promisify(fn: Function): Function;
|
|
5743
5743
|
export namespace promisify {
|
|
5744
5744
|
const custom: symbol;
|
|
@@ -6369,7 +6369,7 @@ declare module "http2" {
|
|
|
6369
6369
|
}
|
|
6370
6370
|
|
|
6371
6371
|
export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions {
|
|
6372
|
-
onError?: (err: NodeJS.ErrnoException) => void;
|
|
6372
|
+
onError?: (err: NodeJS.ErrnoException | null) => void;
|
|
6373
6373
|
}
|
|
6374
6374
|
|
|
6375
6375
|
export interface Http2Stream extends stream.Duplex {
|
node v8/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "8.10.
|
|
3
|
+
"version": "8.10.46",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -134,6 +134,6 @@
|
|
|
134
134
|
},
|
|
135
135
|
"scripts": {},
|
|
136
136
|
"dependencies": {},
|
|
137
|
-
"typesPublisherContentHash": "
|
|
137
|
+
"typesPublisherContentHash": "2ccf2054ef6cf21c07e0ebf71979f729d2ff19ab4bb96a9decf195fa3e265571",
|
|
138
138
|
"typeScriptVersion": "2.1"
|
|
139
139
|
}
|