Comparing version 2.7.0 to 2.7.1
@@ -5,7 +5,7 @@ // Modified from the node.js definitions. | ||
import { | ||
ChildProcess, | ||
ExecException, | ||
ExecOptions, | ||
ExecFileOptions, | ||
ExecFileOptionsWithStringEncoding, | ||
ChildProcess, | ||
ExecException, | ||
ExecOptions, | ||
ExecFileOptions, | ||
ExecFileOptionsWithStringEncoding, | ||
} from "child_process"; | ||
@@ -15,40 +15,40 @@ export * from "child_process"; | ||
export function exec( | ||
command: string, | ||
callback: (error: ExecException | null, stdout: string, stderr: string) => void | ||
command: string, | ||
callback: (error: ExecException | null, stdout: string, stderr: string) => void | ||
): ChildProcess; | ||
export function exec( | ||
command: string, | ||
options: { encoding: "buffer" | null | undefined } & ExecOptions, | ||
callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void | ||
command: string, | ||
options: { encoding: "buffer" | null | undefined } & ExecOptions, | ||
callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void | ||
): ChildProcess; | ||
export function exec( | ||
command: string, | ||
options: ({ encoding?: BufferEncoding } & ExecOptions) | null | undefined, | ||
callback: (error: ExecException | null, stdout: string, stderr: string) => void | ||
command: string, | ||
options: ({ encoding?: BufferEncoding } & ExecOptions) | null | undefined, | ||
callback: (error: ExecException | null, stdout: string, stderr: string) => void | ||
): ChildProcess; | ||
export function exec( | ||
command: string, | ||
options: ({ encoding?: string | null } & ExecOptions) | null | undefined, | ||
callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void | ||
command: string, | ||
options: ({ encoding?: string | null } & ExecOptions) | null | undefined, | ||
callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void | ||
): ChildProcess; | ||
export function exec( | ||
command: string, | ||
options: { encoding: "buffer" | null | undefined } & ExecOptions | ||
command: string, | ||
options: { encoding: "buffer" | null | undefined } & ExecOptions | ||
): Promise<[Buffer, Buffer]>; | ||
export function exec( | ||
command: string, | ||
options?: ({ encoding?: BufferEncoding } & ExecOptions) | null | ||
command: string, | ||
options?: ({ encoding?: BufferEncoding } & ExecOptions) | null | ||
): Promise<[string, string]>; | ||
export function exec( | ||
command: string, | ||
options?: ({ encoding?: string | null } & ExecOptions) | null | ||
command: string, | ||
options?: ({ encoding?: string | null } & ExecOptions) | null | ||
): Promise<[string | Buffer, string | Buffer]>; | ||
interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions { | ||
encoding: "buffer" | null | undefined; | ||
encoding: "buffer" | null | undefined; | ||
} | ||
interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions { | ||
encoding?: string | null; | ||
encoding?: string | null; | ||
} | ||
@@ -58,9 +58,9 @@ | ||
export function execFile( | ||
file: string, | ||
callback: (error: Error | null, stdout: string, stderr: string) => void | ||
file: string, | ||
callback: (error: Error | null, stdout: string, stderr: string) => void | ||
): ChildProcess; | ||
export function execFile( | ||
file: string, | ||
args: ReadonlyArray<string> | null | undefined, | ||
callback: (error: Error | null, stdout: string, stderr: string) => void | ||
file: string, | ||
args: ReadonlyArray<string> | null | undefined, | ||
callback: (error: Error | null, stdout: string, stderr: string) => void | ||
): ChildProcess; | ||
@@ -70,11 +70,11 @@ | ||
export function execFile( | ||
file: string, | ||
options: ExecFileOptionsWithBufferEncoding, | ||
callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void | ||
file: string, | ||
options: ExecFileOptionsWithBufferEncoding, | ||
callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void | ||
): ChildProcess; | ||
export function execFile( | ||
file: string, | ||
args: ReadonlyArray<string> | null | undefined, | ||
options: ExecFileOptionsWithBufferEncoding, | ||
callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void | ||
file: string, | ||
args: ReadonlyArray<string> | null | undefined, | ||
options: ExecFileOptionsWithBufferEncoding, | ||
callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void | ||
): ChildProcess; | ||
@@ -84,13 +84,13 @@ | ||
export function execFile( | ||
file: string, | ||
// `options` can't be mixed into `args` | ||
// tslint:disable-next-line: unified-signatures | ||
options: ExecFileOptions | ExecFileOptionsWithStringEncoding, | ||
callback: (error: Error | null, stdout: string, stderr: string) => void | ||
file: string, | ||
// `options` can't be mixed into `args` | ||
// tslint:disable-next-line: unified-signatures | ||
options: ExecFileOptions | ExecFileOptionsWithStringEncoding, | ||
callback: (error: Error | null, stdout: string, stderr: string) => void | ||
): ChildProcess; | ||
export function execFile( | ||
file: string, | ||
args: ReadonlyArray<string> | null | undefined, | ||
options: ExecFileOptions | ExecFileOptionsWithStringEncoding, | ||
callback: (error: Error | null, stdout: string, stderr: string) => void | ||
file: string, | ||
args: ReadonlyArray<string> | null | undefined, | ||
options: ExecFileOptions | ExecFileOptionsWithStringEncoding, | ||
callback: (error: Error | null, stdout: string, stderr: string) => void | ||
): ChildProcess; | ||
@@ -101,36 +101,36 @@ | ||
export function execFile( | ||
file: string, | ||
options: ExecFileOptionsWithOtherEncoding | null | undefined, | ||
callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void | ||
file: string, | ||
options: ExecFileOptionsWithOtherEncoding | null | undefined, | ||
callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void | ||
): ChildProcess; | ||
export function execFile( | ||
file: string, | ||
args: ReadonlyArray<string> | null | undefined, | ||
options: ExecFileOptionsWithOtherEncoding | null | undefined, | ||
callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void | ||
file: string, | ||
args: ReadonlyArray<string> | null | undefined, | ||
options: ExecFileOptionsWithOtherEncoding | null | undefined, | ||
callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void | ||
): ChildProcess; | ||
export function execFile( | ||
file: string, | ||
args: string[] | null | undefined, | ||
options: ExecFileOptionsWithBufferEncoding | ||
file: string, | ||
args: string[] | null | undefined, | ||
options: ExecFileOptionsWithBufferEncoding | ||
): Promise<[Buffer, Buffer]>; | ||
export function execFile(file: string, options: ExecFileOptionsWithBufferEncoding): Promise<[Buffer, Buffer]>; | ||
export function execFile( | ||
file: string, | ||
args?: string[] | null, | ||
options?: ExecFileOptions | ExecFileOptionsWithStringEncoding | null | ||
file: string, | ||
args?: string[] | null, | ||
options?: ExecFileOptions | ExecFileOptionsWithStringEncoding | null | ||
): Promise<[string, string]>; | ||
export function execFile( | ||
file: string, | ||
options?: ExecFileOptions | ExecFileOptionsWithStringEncoding | null | ||
file: string, | ||
options?: ExecFileOptions | ExecFileOptionsWithStringEncoding | null | ||
): Promise<[string, string]>; | ||
export function execFile( | ||
file: string, | ||
args?: string[] | null, | ||
options?: ExecFileOptionsWithOtherEncoding | null | ||
file: string, | ||
args?: string[] | null, | ||
options?: ExecFileOptionsWithOtherEncoding | null | ||
): Promise<[string | Buffer, string | Buffer]>; | ||
export function execFile( | ||
file: string, | ||
options?: ExecFileOptionsWithOtherEncoding | null | ||
file: string, | ||
options?: ExecFileOptionsWithOtherEncoding | null | ||
): Promise<[string | Buffer, string | Buffer]>; |
@@ -8,15 +8,15 @@ // Modified from the node.js definitions. | ||
export function pbkdf2( | ||
password: BinaryLike, | ||
salt: BinaryLike, | ||
iterations: number, | ||
keylen: number, | ||
digest: string, | ||
callback: (err: Error | null, derivedKey: Buffer) => any | ||
password: BinaryLike, | ||
salt: BinaryLike, | ||
iterations: number, | ||
keylen: number, | ||
digest: string, | ||
callback: (err: Error | null, derivedKey: Buffer) => any | ||
): void; | ||
export function pbkdf2( | ||
password: BinaryLike, | ||
salt: BinaryLike, | ||
iterations: number, | ||
keylen: number, | ||
digest: string | ||
password: BinaryLike, | ||
salt: BinaryLike, | ||
iterations: number, | ||
keylen: number, | ||
digest: string | ||
): Promise<Buffer>; | ||
@@ -23,0 +23,0 @@ |
192
mz/dns.d.ts
@@ -5,14 +5,14 @@ // Modified from the node.js definitions. | ||
import { | ||
LookupAddress, | ||
LookupAllOptions, | ||
LookupOneOptions, | ||
LookupOptions, | ||
ResolveOptions, | ||
ResolveWithTtlOptions, | ||
AnyRecord, | ||
MxRecord, | ||
NaptrRecord, | ||
SoaRecord, | ||
SrvRecord, | ||
RecordWithTtl, | ||
LookupAddress, | ||
LookupAllOptions, | ||
LookupOneOptions, | ||
LookupOptions, | ||
ResolveOptions, | ||
ResolveWithTtlOptions, | ||
AnyRecord, | ||
MxRecord, | ||
NaptrRecord, | ||
SoaRecord, | ||
SrvRecord, | ||
RecordWithTtl, | ||
} from "dns"; | ||
@@ -23,26 +23,26 @@ export * from "dns"; | ||
export function lookup( | ||
hostname: string, | ||
family: number, | ||
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void | ||
hostname: string, | ||
family: number, | ||
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void | ||
): void; | ||
export function lookup( | ||
hostname: string, | ||
// `options` can't be mixed into `family` | ||
// tslint:disable-next-line: unified-signatures | ||
options: LookupOneOptions, | ||
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void | ||
hostname: string, | ||
// `options` can't be mixed into `family` | ||
// tslint:disable-next-line: unified-signatures | ||
options: LookupOneOptions, | ||
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void | ||
): void; | ||
export function lookup( | ||
hostname: string, | ||
options: LookupAllOptions, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void | ||
hostname: string, | ||
options: LookupAllOptions, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void | ||
): void; | ||
export function lookup( | ||
hostname: string, | ||
options: LookupOptions, | ||
callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void | ||
hostname: string, | ||
options: LookupOptions, | ||
callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void | ||
): void; | ||
export function lookup( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void | ||
): void; | ||
@@ -55,5 +55,5 @@ | ||
export function lookupService( | ||
address: string, | ||
port: number, | ||
callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void | ||
address: string, | ||
port: number, | ||
callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void | ||
): void; | ||
@@ -64,47 +64,47 @@ export function lookupService(address: string, port: number): Promise<[string, string]>; | ||
export function resolve( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
): void; | ||
export function resolve( | ||
hostname: string, | ||
rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
hostname: string, | ||
rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
): void; | ||
export function resolve( | ||
hostname: string, | ||
rrtype: "ANY", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void | ||
hostname: string, | ||
rrtype: "ANY", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void | ||
): void; | ||
export function resolve( | ||
hostname: string, | ||
rrtype: "MX", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void | ||
hostname: string, | ||
rrtype: "MX", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void | ||
): void; | ||
export function resolve( | ||
hostname: string, | ||
rrtype: "NAPTR", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void | ||
hostname: string, | ||
rrtype: "NAPTR", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void | ||
): void; | ||
export function resolve( | ||
hostname: string, | ||
rrtype: "SOA", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void | ||
hostname: string, | ||
rrtype: "SOA", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void | ||
): void; | ||
export function resolve( | ||
hostname: string, | ||
rrtype: "SRV", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void | ||
hostname: string, | ||
rrtype: "SRV", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void | ||
): void; | ||
export function resolve( | ||
hostname: string, | ||
rrtype: "TXT", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void | ||
hostname: string, | ||
rrtype: "TXT", | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void | ||
): void; | ||
export function resolve( | ||
hostname: string, | ||
rrtype: string, | ||
callback: ( | ||
err: NodeJS.ErrnoException | null, | ||
addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[] | ||
) => void | ||
hostname: string, | ||
rrtype: string, | ||
callback: ( | ||
err: NodeJS.ErrnoException | null, | ||
addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[] | ||
) => void | ||
): void; | ||
@@ -120,4 +120,4 @@ | ||
export function resolve( | ||
hostname: string, | ||
rrtype: string | ||
hostname: string, | ||
rrtype: string | ||
): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>; | ||
@@ -127,14 +127,14 @@ | ||
export function resolve4( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
): void; | ||
export function resolve4( | ||
hostname: string, | ||
options: ResolveWithTtlOptions, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void | ||
hostname: string, | ||
options: ResolveWithTtlOptions, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void | ||
): void; | ||
export function resolve4( | ||
hostname: string, | ||
options: ResolveOptions, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void | ||
hostname: string, | ||
options: ResolveOptions, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void | ||
): void; | ||
@@ -148,14 +148,14 @@ | ||
export function resolve6( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
): void; | ||
export function resolve6( | ||
hostname: string, | ||
options: ResolveWithTtlOptions, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void | ||
hostname: string, | ||
options: ResolveWithTtlOptions, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void | ||
): void; | ||
export function resolve6( | ||
hostname: string, | ||
options: ResolveOptions, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void | ||
hostname: string, | ||
options: ResolveOptions, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void | ||
): void; | ||
@@ -168,4 +168,4 @@ | ||
export function resolveCname( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
): void; | ||
@@ -175,4 +175,4 @@ export function resolveCname(hostname: string): Promise<string[]>; | ||
export function resolveMx( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void | ||
): void; | ||
@@ -182,4 +182,4 @@ export function resolveMx(hostname: string): Promise<MxRecord[]>; | ||
export function resolveNaptr( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void | ||
): void; | ||
@@ -189,4 +189,4 @@ export function resolveNaptr(hostname: string): Promise<NaptrRecord[]>; | ||
export function resolveNs( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
): void; | ||
@@ -196,4 +196,4 @@ export function resolveNs(hostname: string): Promise<string[]>; | ||
export function resolvePtr( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void | ||
): void; | ||
@@ -203,4 +203,4 @@ export function resolvePtr(hostname: string): Promise<string[]>; | ||
export function resolveSoa( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void | ||
): void; | ||
@@ -210,4 +210,4 @@ export function resolveSoa(hostname: string): Promise<SoaRecord>; | ||
export function resolveSrv( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void | ||
): void; | ||
@@ -217,4 +217,4 @@ export function resolveSrv(hostname: string): Promise<SrvRecord[]>; | ||
export function resolveTxt( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void | ||
): void; | ||
@@ -224,4 +224,4 @@ export function resolveTxt(hostname: string): Promise<string[][]>; | ||
export function resolveAny( | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void | ||
hostname: string, | ||
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void | ||
): void; | ||
@@ -228,0 +228,0 @@ export function resolveAny(hostname: string): Promise<AnyRecord[]>; |
432
mz/fs.d.ts
@@ -5,11 +5,11 @@ // Modified from the node.js definitions. | ||
import { | ||
Dirent, | ||
FSWatcher, | ||
NoParamCallback, | ||
PathLike, | ||
RmDirAsyncOptions, | ||
WriteFileOptions, | ||
Stats, | ||
symlink as symlinkNS, | ||
MakeDirectoryOptions, | ||
Dirent, | ||
FSWatcher, | ||
NoParamCallback, | ||
PathLike, | ||
RmDirAsyncOptions, | ||
WriteFileOptions, | ||
Stats, | ||
symlink as symlinkNS, | ||
MakeDirectoryOptions, | ||
} from "fs"; | ||
@@ -307,6 +307,6 @@ export * from "fs"; | ||
export function symlink( | ||
target: PathLike, | ||
path: PathLike, | ||
type: symlinkNS.Type | null | undefined, | ||
callback: NoParamCallback | ||
target: PathLike, | ||
path: PathLike, | ||
type: symlinkNS.Type | null | undefined, | ||
callback: NoParamCallback | ||
): void; | ||
@@ -345,5 +345,5 @@ | ||
export function readlink( | ||
path: PathLike, | ||
options: { encoding?: BufferEncoding | null } | BufferEncoding | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, linkString: string) => void | ||
path: PathLike, | ||
options: { encoding?: BufferEncoding | null } | BufferEncoding | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, linkString: string) => void | ||
): void; | ||
@@ -360,5 +360,5 @@ | ||
export function readlink( | ||
path: PathLike, | ||
options: { encoding: "buffer" } | "buffer", | ||
callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void | ||
path: PathLike, | ||
options: { encoding: "buffer" } | "buffer", | ||
callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void | ||
): void; | ||
@@ -375,5 +375,5 @@ | ||
export function readlink( | ||
path: PathLike, | ||
options: { encoding?: string | null } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void | ||
path: PathLike, | ||
options: { encoding?: string | null } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void | ||
): void; | ||
@@ -389,4 +389,4 @@ | ||
export function readlink( | ||
path: PathLike, | ||
callback: (err: NodeJS.ErrnoException | null, linkString: string) => void | ||
path: PathLike, | ||
callback: (err: NodeJS.ErrnoException | null, linkString: string) => void | ||
): void; | ||
@@ -403,4 +403,4 @@ | ||
export function readlink( | ||
path: PathLike, | ||
options?: { encoding?: BufferEncoding | null } | BufferEncoding | null | ||
path: PathLike, | ||
options?: { encoding?: BufferEncoding | null } | BufferEncoding | null | ||
): Promise<string>; | ||
@@ -427,4 +427,4 @@ | ||
export function readlink( | ||
path: PathLike, | ||
options?: { encoding?: string | null } | string | null | ||
path: PathLike, | ||
options?: { encoding?: string | null } | string | null | ||
): Promise<string | Buffer>; | ||
@@ -441,5 +441,5 @@ | ||
export function realpath( | ||
path: PathLike, | ||
options: { encoding?: BufferEncoding | null } | BufferEncoding | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void | ||
path: PathLike, | ||
options: { encoding?: BufferEncoding | null } | BufferEncoding | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void | ||
): void; | ||
@@ -456,5 +456,5 @@ | ||
export function realpath( | ||
path: PathLike, | ||
options: { encoding: "buffer" } | "buffer", | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void | ||
path: PathLike, | ||
options: { encoding: "buffer" } | "buffer", | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void | ||
): void; | ||
@@ -471,5 +471,5 @@ | ||
export function realpath( | ||
path: PathLike, | ||
options: { encoding?: string | null } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void | ||
path: PathLike, | ||
options: { encoding?: string | null } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void | ||
): void; | ||
@@ -485,4 +485,4 @@ | ||
export function realpath( | ||
path: PathLike, | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void | ||
path: PathLike, | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void | ||
): void; | ||
@@ -499,4 +499,4 @@ | ||
export function realpath( | ||
path: PathLike, | ||
options?: { encoding?: BufferEncoding | null } | BufferEncoding | null | ||
path: PathLike, | ||
options?: { encoding?: BufferEncoding | null } | BufferEncoding | null | ||
): Promise<string>; | ||
@@ -523,33 +523,33 @@ | ||
export function realpath( | ||
path: PathLike, | ||
options?: { encoding?: string | null } | string | null | ||
path: PathLike, | ||
options?: { encoding?: string | null } | string | null | ||
): Promise<string | Buffer>; | ||
export namespace realpath { | ||
function native( | ||
path: PathLike, | ||
options: { encoding?: BufferEncoding | null } | BufferEncoding | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void | ||
): void; | ||
function native( | ||
path: PathLike, | ||
options: { encoding: "buffer" } | "buffer", | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void | ||
): void; | ||
function native( | ||
path: PathLike, | ||
options: { encoding?: string | null } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void | ||
): void; | ||
function native(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; | ||
function native( | ||
path: PathLike, | ||
options: { encoding?: BufferEncoding | null } | BufferEncoding | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void | ||
): void; | ||
function native( | ||
path: PathLike, | ||
options: { encoding: "buffer" } | "buffer", | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void | ||
): void; | ||
function native( | ||
path: PathLike, | ||
options: { encoding?: string | null } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void | ||
): void; | ||
function native(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; | ||
function native( | ||
path: PathLike, | ||
options?: { encoding?: BufferEncoding | null } | BufferEncoding | null | ||
): Promise<string>; | ||
function native(path: PathLike, options: { encoding: "buffer" } | "buffer"): Promise<Buffer>; | ||
function native( | ||
path: PathLike, | ||
options: { encoding?: string | null } | string | null | undefined | ||
): Promise<string | Buffer>; | ||
function native( | ||
path: PathLike, | ||
options?: { encoding?: BufferEncoding | null } | BufferEncoding | null | ||
): Promise<string>; | ||
function native(path: PathLike, options: { encoding: "buffer" } | "buffer"): Promise<Buffer>; | ||
function native( | ||
path: PathLike, | ||
options: { encoding?: string | null } | string | null | undefined | ||
): Promise<string | Buffer>; | ||
} | ||
@@ -612,5 +612,5 @@ | ||
export function mkdir( | ||
path: PathLike, | ||
options: number | string | MakeDirectoryOptions | null | undefined, | ||
callback: NoParamCallback | ||
path: PathLike, | ||
options: number | string | MakeDirectoryOptions | null | undefined, | ||
callback: NoParamCallback | ||
): void; | ||
@@ -647,5 +647,5 @@ | ||
export function mkdtemp( | ||
prefix: string, | ||
options: { encoding?: BufferEncoding | null } | BufferEncoding | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, folder: string) => void | ||
prefix: string, | ||
options: { encoding?: BufferEncoding | null } | BufferEncoding | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, folder: string) => void | ||
): void; | ||
@@ -662,5 +662,5 @@ | ||
export function mkdtemp( | ||
prefix: string, | ||
options: "buffer" | { encoding: "buffer" }, | ||
callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void | ||
prefix: string, | ||
options: "buffer" | { encoding: "buffer" }, | ||
callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void | ||
): void; | ||
@@ -677,5 +677,5 @@ | ||
export function mkdtemp( | ||
prefix: string, | ||
options: { encoding?: string | null } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void | ||
prefix: string, | ||
options: { encoding?: string | null } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void | ||
): void; | ||
@@ -702,4 +702,4 @@ | ||
export function mkdtemp( | ||
prefix: string, | ||
options?: { encoding?: BufferEncoding | null } | BufferEncoding | null | ||
prefix: string, | ||
options?: { encoding?: BufferEncoding | null } | BufferEncoding | null | ||
): Promise<string>; | ||
@@ -726,4 +726,4 @@ | ||
export function mkdtemp( | ||
prefix: string, | ||
options?: { encoding?: string | null } | string | null | ||
prefix: string, | ||
options?: { encoding?: string | null } | string | null | ||
): Promise<string | Buffer>; | ||
@@ -740,5 +740,5 @@ | ||
export function readdir( | ||
path: PathLike, | ||
options: { encoding: BufferEncoding | null; withFileTypes?: false } | BufferEncoding | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, files: string[]) => void | ||
path: PathLike, | ||
options: { encoding: BufferEncoding | null; withFileTypes?: false } | BufferEncoding | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, files: string[]) => void | ||
): void; | ||
@@ -755,5 +755,5 @@ | ||
export function readdir( | ||
path: PathLike, | ||
options: { encoding: "buffer"; withFileTypes?: false } | "buffer", | ||
callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void | ||
path: PathLike, | ||
options: { encoding: "buffer"; withFileTypes?: false } | "buffer", | ||
callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void | ||
): void; | ||
@@ -770,5 +770,5 @@ | ||
export function readdir( | ||
path: PathLike, | ||
options: { encoding?: string | null; withFileTypes?: false } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void | ||
path: PathLike, | ||
options: { encoding?: string | null; withFileTypes?: false } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void | ||
): void; | ||
@@ -794,5 +794,5 @@ | ||
export function readdir( | ||
path: PathLike, | ||
options: { encoding?: string | null; withFileTypes: true }, | ||
callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void | ||
path: PathLike, | ||
options: { encoding?: string | null; withFileTypes: true }, | ||
callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void | ||
): void; | ||
@@ -809,4 +809,4 @@ | ||
export function readdir( | ||
path: PathLike, | ||
options?: { encoding: BufferEncoding | null; withFileTypes?: false } | BufferEncoding | null | ||
path: PathLike, | ||
options?: { encoding: BufferEncoding | null; withFileTypes?: false } | BufferEncoding | null | ||
): Promise<string[]>; | ||
@@ -823,4 +823,4 @@ | ||
export function readdir( | ||
path: PathLike, | ||
options: "buffer" | { encoding: "buffer"; withFileTypes?: false } | ||
path: PathLike, | ||
options: "buffer" | { encoding: "buffer"; withFileTypes?: false } | ||
): Promise<Buffer[]>; | ||
@@ -837,4 +837,4 @@ | ||
export function readdir( | ||
path: PathLike, | ||
options?: { encoding?: string | null; withFileTypes?: false } | string | null | ||
path: PathLike, | ||
options?: { encoding?: string | null; withFileTypes?: false } | string | null | ||
): Promise<string[] | Buffer[]>; | ||
@@ -879,6 +879,6 @@ | ||
export function open( | ||
path: PathLike, | ||
flags: string | number, | ||
mode: string | number | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, fd: number) => void | ||
path: PathLike, | ||
flags: string | number, | ||
mode: string | number | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, fd: number) => void | ||
): void; | ||
@@ -894,5 +894,5 @@ | ||
export function open( | ||
path: PathLike, | ||
flags: string | number, | ||
callback: (err: NodeJS.ErrnoException | null, fd: number) => void | ||
path: PathLike, | ||
flags: string | number, | ||
callback: (err: NodeJS.ErrnoException | null, fd: number) => void | ||
): void; | ||
@@ -918,6 +918,6 @@ | ||
export function utimes( | ||
path: PathLike, | ||
atime: string | number | Date, | ||
mtime: string | number | Date, | ||
callback: NoParamCallback | ||
path: PathLike, | ||
atime: string | number | Date, | ||
mtime: string | number | Date, | ||
callback: NoParamCallback | ||
): void; | ||
@@ -942,6 +942,6 @@ | ||
export function futimes( | ||
fd: number, | ||
atime: string | number | Date, | ||
mtime: string | number | Date, | ||
callback: NoParamCallback | ||
fd: number, | ||
atime: string | number | Date, | ||
mtime: string | number | Date, | ||
callback: NoParamCallback | ||
): void; | ||
@@ -985,8 +985,8 @@ | ||
export function write<TBuffer extends NodeJS.ArrayBufferView>( | ||
fd: number, | ||
buffer: TBuffer, | ||
offset: number | null | undefined, | ||
length: number | null | undefined, | ||
position: number | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void | ||
fd: number, | ||
buffer: TBuffer, | ||
offset: number | null | undefined, | ||
length: number | null | undefined, | ||
position: number | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void | ||
): void; | ||
@@ -1002,7 +1002,7 @@ | ||
export function write<TBuffer extends NodeJS.ArrayBufferView>( | ||
fd: number, | ||
buffer: TBuffer, | ||
offset: number | null | undefined, | ||
length: number | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void | ||
fd: number, | ||
buffer: TBuffer, | ||
offset: number | null | undefined, | ||
length: number | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void | ||
): void; | ||
@@ -1017,6 +1017,6 @@ | ||
export function write<TBuffer extends NodeJS.ArrayBufferView>( | ||
fd: number, | ||
buffer: TBuffer, | ||
offset: number | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void | ||
fd: number, | ||
buffer: TBuffer, | ||
offset: number | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void | ||
): void; | ||
@@ -1030,5 +1030,5 @@ | ||
export function write<TBuffer extends NodeJS.ArrayBufferView>( | ||
fd: number, | ||
buffer: TBuffer, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void | ||
fd: number, | ||
buffer: TBuffer, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void | ||
): void; | ||
@@ -1045,7 +1045,7 @@ | ||
export function write<TBuffer extends NodeJS.ArrayBufferView>( | ||
fd: number, | ||
buffer?: TBuffer, | ||
offset?: number, | ||
length?: number, | ||
position?: number | null | ||
fd: number, | ||
buffer?: TBuffer, | ||
offset?: number, | ||
length?: number, | ||
position?: number | null | ||
): Promise<[number, TBuffer]>; | ||
@@ -1062,7 +1062,7 @@ | ||
export function write( | ||
fd: number, | ||
data: any, | ||
position: number | null | undefined, | ||
encoding: string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void | ||
fd: number, | ||
data: any, | ||
position: number | null | undefined, | ||
encoding: string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void | ||
): void; | ||
@@ -1078,6 +1078,6 @@ | ||
export function write( | ||
fd: number, | ||
data: any, | ||
position: number | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void | ||
fd: number, | ||
data: any, | ||
position: number | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void | ||
): void; | ||
@@ -1092,5 +1092,5 @@ | ||
export function write( | ||
fd: number, | ||
data: any, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void | ||
fd: number, | ||
data: any, | ||
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void | ||
): void; | ||
@@ -1107,6 +1107,6 @@ | ||
export function write( | ||
fd: number, | ||
string: any, | ||
position?: number | null, | ||
encoding?: string | null | ||
fd: number, | ||
string: any, | ||
position?: number | null, | ||
encoding?: string | null | ||
): Promise<[number, string]>; | ||
@@ -1124,8 +1124,8 @@ | ||
export function read<TBuffer extends NodeJS.ArrayBufferView>( | ||
fd: number, | ||
buffer: TBuffer, | ||
offset: number, | ||
length: number, | ||
position: number | null, | ||
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void | ||
fd: number, | ||
buffer: TBuffer, | ||
offset: number, | ||
length: number, | ||
position: number | null, | ||
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void | ||
): void; | ||
@@ -1143,7 +1143,7 @@ | ||
export function read<TBuffer extends NodeJS.ArrayBufferView>( | ||
fd: number, | ||
buffer: TBuffer, | ||
offset: number, | ||
length: number, | ||
position: number | null | ||
fd: number, | ||
buffer: TBuffer, | ||
offset: number, | ||
length: number, | ||
position: number | null | ||
): Promise<{ bytesRead: number; buffer: TBuffer }>; | ||
@@ -1160,5 +1160,5 @@ | ||
export function readFile( | ||
path: PathLike | number, | ||
options: { encoding?: null; flag?: string } | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void | ||
path: PathLike | number, | ||
options: { encoding?: null; flag?: string } | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void | ||
): void; | ||
@@ -1176,5 +1176,5 @@ | ||
export function readFile( | ||
path: PathLike | number, | ||
options: { encoding: string; flag?: string } | string, | ||
callback: (err: NodeJS.ErrnoException | null, data: string) => void | ||
path: PathLike | number, | ||
options: { encoding: string; flag?: string } | string, | ||
callback: (err: NodeJS.ErrnoException | null, data: string) => void | ||
): void; | ||
@@ -1192,5 +1192,5 @@ | ||
export function readFile( | ||
path: PathLike | number, | ||
options: { encoding?: string | null; flag?: string } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void | ||
path: PathLike | number, | ||
options: { encoding?: string | null; flag?: string } | string | null | undefined, | ||
callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void | ||
): void; | ||
@@ -1205,4 +1205,4 @@ | ||
export function readFile( | ||
path: PathLike | number, | ||
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void | ||
path: PathLike | number, | ||
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void | ||
): void; | ||
@@ -1230,4 +1230,4 @@ | ||
export function readFile( | ||
path: PathLike | number, | ||
options: { encoding: string; flag?: string } | string | ||
path: PathLike | number, | ||
options: { encoding: string; flag?: string } | string | ||
): Promise<string>; | ||
@@ -1245,4 +1245,4 @@ | ||
export function readFile( | ||
path: PathLike | number, | ||
options?: { encoding?: string | null; flag?: string } | string | null | ||
path: PathLike | number, | ||
options?: { encoding?: string | null; flag?: string } | string | null | ||
): Promise<string | Buffer>; | ||
@@ -1264,6 +1264,6 @@ | ||
export function writeFile( | ||
path: PathLike | number, | ||
data: any, | ||
options: WriteFileOptions, | ||
callback: NoParamCallback | ||
path: PathLike | number, | ||
data: any, | ||
options: WriteFileOptions, | ||
callback: NoParamCallback | ||
): void; | ||
@@ -1310,6 +1310,6 @@ | ||
export function appendFile( | ||
file: PathLike | number, | ||
data: any, | ||
options: WriteFileOptions, | ||
callback: NoParamCallback | ||
file: PathLike | number, | ||
data: any, | ||
options: WriteFileOptions, | ||
callback: NoParamCallback | ||
): void; | ||
@@ -1346,5 +1346,5 @@ | ||
export function watchFile( | ||
filename: PathLike, | ||
options: { persistent?: boolean; interval?: number } | undefined, | ||
listener: (curr: Stats, prev: Stats) => void | ||
filename: PathLike, | ||
options: { persistent?: boolean; interval?: number } | undefined, | ||
listener: (curr: Stats, prev: Stats) => void | ||
): void; | ||
@@ -1376,9 +1376,9 @@ | ||
export function watch( | ||
filename: PathLike, | ||
options: | ||
{ encoding?: BufferEncoding | null; persistent?: boolean; recursive?: boolean } | | ||
BufferEncoding | | ||
undefined | | ||
null, | ||
listener?: (event: string, filename: string) => void | ||
filename: PathLike, | ||
options: | ||
{ encoding?: BufferEncoding | null; persistent?: boolean; recursive?: boolean } | | ||
BufferEncoding | | ||
undefined | | ||
null, | ||
listener?: (event: string, filename: string) => void | ||
): FSWatcher; | ||
@@ -1396,5 +1396,5 @@ | ||
export function watch( | ||
filename: PathLike, | ||
options: { encoding: "buffer"; persistent?: boolean; recursive?: boolean } | "buffer", | ||
listener?: (event: string, filename: Buffer) => void | ||
filename: PathLike, | ||
options: { encoding: "buffer"; persistent?: boolean; recursive?: boolean } | "buffer", | ||
listener?: (event: string, filename: Buffer) => void | ||
): FSWatcher; | ||
@@ -1412,5 +1412,5 @@ | ||
export function watch( | ||
filename: PathLike, | ||
options: { encoding?: string | null; persistent?: boolean; recursive?: boolean } | string | null, | ||
listener?: (event: string, filename: string | Buffer) => void | ||
filename: PathLike, | ||
options: { encoding?: string | null; persistent?: boolean; recursive?: boolean } | string | null, | ||
listener?: (event: string, filename: string | Buffer) => void | ||
): FSWatcher; | ||
@@ -1541,18 +1541,18 @@ | ||
export function writev( | ||
fd: number, | ||
buffers: NodeJS.ArrayBufferView[], | ||
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void | ||
fd: number, | ||
buffers: NodeJS.ArrayBufferView[], | ||
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void | ||
): void; | ||
export function writev( | ||
fd: number, | ||
buffers: NodeJS.ArrayBufferView[], | ||
position: number, | ||
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void | ||
fd: number, | ||
buffers: NodeJS.ArrayBufferView[], | ||
position: number, | ||
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void | ||
): void; | ||
export function writev( | ||
fd: number, | ||
buffers: NodeJS.ArrayBufferView[], | ||
position?: number | ||
fd: number, | ||
buffers: NodeJS.ArrayBufferView[], | ||
position?: number | ||
): Promise<[number, NodeJS.ArrayBufferView[]]>; |
{ | ||
"name": "@types/mz", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "TypeScript definitions for mz", | ||
@@ -29,4 +29,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "75c87edb73b6b34ea8a800922c69734d423e22f977a78779d7340fe17829e102", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "6b79557687032dd392a3df636a9be8c8550b963df408659b3430fa17ed5edbd8", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -9,4 +9,4 @@ // Modified from the node.js definitions. | ||
export class Interface extends readline.Interface { | ||
question(query: string, callback: (answer: string) => void): void; | ||
question(query: string): Promise<string>; | ||
question(query: string, callback: (answer: string) => void): void; | ||
question(query: string): Promise<string>; | ||
} | ||
@@ -18,16 +18,16 @@ | ||
export type AsyncCompleter = | ||
((line: string, callback: (err?: null | Error, result?: readline.CompleterResult) => void) => void) | | ||
((line: string) => Promise<readline.CompleterResult>); | ||
((line: string, callback: (err?: null | Error, result?: readline.CompleterResult) => void) => void) | | ||
((line: string) => Promise<readline.CompleterResult>); | ||
export type Completer = AsyncCompleter | readline.Completer; | ||
export interface ReadLineOptions extends readline.ReadLineOptions { | ||
completer?: Completer; | ||
completer?: Completer; | ||
} | ||
export function createInterface( | ||
input: NodeJS.ReadableStream, | ||
output?: NodeJS.WritableStream, | ||
completer?: Completer, | ||
terminal?: boolean | ||
input: NodeJS.ReadableStream, | ||
output?: NodeJS.WritableStream, | ||
completer?: Completer, | ||
terminal?: boolean | ||
): Interface; | ||
export function createInterface(options: ReadLineOptions): Interface; |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 22 Nov 2019 17:05:29 GMT | ||
* Last updated: Fri, 15 May 2020 11:31:17 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Thomas Hickman (https://github.com/ThomasHickman), and ExE Boss (https://github.com/ExE-Boss). | ||
These definitions were written by [Thomas Hickman](https://github.com/ThomasHickman), and [ExE Boss](https://github.com/ExE-Boss). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
78197
0