Socket
Socket
Sign inDemoInstall

@types/mz

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/mz - npm Package Compare versions

Comparing version 2.7.4 to 2.7.5

42

mz/child_process.d.ts

@@ -7,5 +7,5 @@ // Modified from the node.js definitions.

ExecException,
ExecOptions,
ExecFileOptions,
ExecFileOptionsWithStringEncoding,
ExecOptions,
} from "child_process";

@@ -16,3 +16,3 @@ export * from "child_process";

command: string,
callback: (error: ExecException | null, stdout: string, stderr: string) => void
callback: (error: ExecException | null, stdout: string, stderr: string) => void,
): ChildProcess;

@@ -22,3 +22,3 @@ export function exec(

options: { encoding: "buffer" | null | undefined } & ExecOptions,
callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void
callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void,
): ChildProcess;

@@ -28,3 +28,3 @@ export function exec(

options: ({ encoding?: BufferEncoding | undefined } & ExecOptions) | null | undefined,
callback: (error: ExecException | null, stdout: string, stderr: string) => void
callback: (error: ExecException | null, stdout: string, stderr: string) => void,
): ChildProcess;

@@ -34,3 +34,3 @@ export function exec(

options: ({ encoding?: string | null | undefined } & ExecOptions) | null | undefined,
callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void
callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
): ChildProcess;

@@ -40,11 +40,11 @@

command: string,
options: { encoding: "buffer" | null | undefined } & ExecOptions
options: { encoding: "buffer" | null | undefined } & ExecOptions,
): Promise<[Buffer, Buffer]>;
export function exec(
command: string,
options?: ({ encoding?: BufferEncoding | undefined } & ExecOptions) | null
options?: ({ encoding?: BufferEncoding | undefined } & ExecOptions) | null,
): Promise<[string, string]>;
export function exec(
command: string,
options?: ({ encoding?: string | null | undefined } & ExecOptions) | null
options?: ({ encoding?: string | null | undefined } & ExecOptions) | null,
): Promise<[string | Buffer, string | Buffer]>;

@@ -63,3 +63,3 @@

file: string,
callback: (error: Error | null, stdout: string, stderr: string) => void
callback: (error: Error | null, stdout: string, stderr: string) => void,
): ChildProcess;

@@ -69,3 +69,3 @@ export function execFile(

args: ReadonlyArray<string> | null | undefined,
callback: (error: Error | null, stdout: string, stderr: string) => void
callback: (error: Error | null, stdout: string, stderr: string) => void,
): ChildProcess;

@@ -77,3 +77,3 @@

options: ExecFileOptionsWithBufferEncoding,
callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void
callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void,
): ChildProcess;

@@ -84,3 +84,3 @@ export function execFile(

options: ExecFileOptionsWithBufferEncoding,
callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void
callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void,
): ChildProcess;

@@ -94,3 +94,3 @@

options: ExecFileOptions | ExecFileOptionsWithStringEncoding,
callback: (error: Error | null, stdout: string, stderr: string) => void
callback: (error: Error | null, stdout: string, stderr: string) => void,
): ChildProcess;

@@ -101,3 +101,3 @@ export function execFile(

options: ExecFileOptions | ExecFileOptionsWithStringEncoding,
callback: (error: Error | null, stdout: string, stderr: string) => void
callback: (error: Error | null, stdout: string, stderr: string) => void,
): ChildProcess;

@@ -110,3 +110,3 @@

options: ExecFileOptionsWithOtherEncoding | null | undefined,
callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void
callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void,
): ChildProcess;

@@ -117,3 +117,3 @@ export function execFile(

options: ExecFileOptionsWithOtherEncoding | null | undefined,
callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void
callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void,
): ChildProcess;

@@ -124,3 +124,3 @@

args: string[] | null | undefined,
options: ExecFileOptionsWithBufferEncoding
options: ExecFileOptionsWithBufferEncoding,
): Promise<[Buffer, Buffer]>;

@@ -131,7 +131,7 @@ export function execFile(file: string, options: ExecFileOptionsWithBufferEncoding): Promise<[Buffer, Buffer]>;

args?: string[] | null,
options?: ExecFileOptions | ExecFileOptionsWithStringEncoding | null
options?: ExecFileOptions | ExecFileOptionsWithStringEncoding | null,
): Promise<[string, string]>;
export function execFile(
file: string,
options?: ExecFileOptions | ExecFileOptionsWithStringEncoding | null
options?: ExecFileOptions | ExecFileOptionsWithStringEncoding | null,
): Promise<[string, string]>;

@@ -141,7 +141,7 @@ export function execFile(

args?: string[] | null,
options?: ExecFileOptionsWithOtherEncoding | null
options?: ExecFileOptionsWithOtherEncoding | null,
): Promise<[string | Buffer, string | Buffer]>;
export function execFile(
file: string,
options?: ExecFileOptionsWithOtherEncoding | null
options?: ExecFileOptionsWithOtherEncoding | null,
): Promise<[string | Buffer, string | Buffer]>;

@@ -13,3 +13,3 @@ // Modified from the node.js definitions.

digest: string,
callback: (err: Error | null, derivedKey: Buffer) => any
callback: (err: Error | null, derivedKey: Buffer) => any,
): void;

@@ -21,3 +21,3 @@ export function pbkdf2(

keylen: number,
digest: string
digest: string,
): Promise<Buffer>;

@@ -24,0 +24,0 @@

@@ -5,2 +5,3 @@ // Modified from the node.js definitions.

import {
AnyRecord,
LookupAddress,

@@ -10,10 +11,9 @@ LookupAllOptions,

LookupOptions,
MxRecord,
NaptrRecord,
RecordWithTtl,
ResolveOptions,
ResolveWithTtlOptions,
AnyRecord,
MxRecord,
NaptrRecord,
SoaRecord,
SrvRecord,
RecordWithTtl,
} from "dns";

@@ -26,3 +26,3 @@ export * from "dns";

family: number,
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
): void;

@@ -34,3 +34,3 @@ export function lookup(

options: LookupOneOptions,
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
): void;

@@ -40,3 +40,3 @@ export function lookup(

options: LookupAllOptions,
callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void,
): void;

@@ -46,7 +46,7 @@ export function lookup(

options: LookupOptions,
callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void
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
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
): void;

@@ -61,3 +61,3 @@

port: number,
callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void
callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void,
): void;

@@ -69,3 +69,3 @@ export function lookupService(address: string, port: number): Promise<[string, string]>;

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
): void;

@@ -75,3 +75,3 @@ export function resolve(

rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR",
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
): void;

@@ -81,3 +81,3 @@ export function resolve(

rrtype: "ANY",
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
): void;

@@ -87,3 +87,3 @@ export function resolve(

rrtype: "MX",
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
): void;

@@ -93,3 +93,3 @@ export function resolve(

rrtype: "NAPTR",
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
): void;

@@ -99,3 +99,3 @@ export function resolve(

rrtype: "SOA",
callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void
callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void,
): void;

@@ -105,3 +105,3 @@ export function resolve(

rrtype: "SRV",
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
): void;

@@ -111,3 +111,3 @@ export function resolve(

rrtype: "TXT",
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
): void;

@@ -119,4 +119,4 @@ export function resolve(

err: NodeJS.ErrnoException | null,
addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]
) => void
addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[],
) => void,
): void;

@@ -133,3 +133,3 @@

hostname: string,
rrtype: string
rrtype: string,
): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;

@@ -140,3 +140,3 @@

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
): void;

@@ -146,3 +146,3 @@ export function resolve4(

options: ResolveWithTtlOptions,
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
): void;

@@ -152,3 +152,3 @@ export function resolve4(

options: ResolveOptions,
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
): void;

@@ -163,3 +163,3 @@

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
): void;

@@ -169,3 +169,3 @@ export function resolve6(

options: ResolveWithTtlOptions,
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
): void;

@@ -175,3 +175,3 @@ export function resolve6(

options: ResolveOptions,
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
): void;

@@ -185,3 +185,3 @@

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
): void;

@@ -192,3 +192,3 @@ export function resolveCname(hostname: string): Promise<string[]>;

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
): void;

@@ -199,3 +199,3 @@ export function resolveMx(hostname: string): Promise<MxRecord[]>;

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
): void;

@@ -206,3 +206,3 @@ export function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
): void;

@@ -213,3 +213,3 @@ export function resolveNs(hostname: string): Promise<string[]>;

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
): void;

@@ -220,3 +220,3 @@ export function resolvePtr(hostname: string): Promise<string[]>;

hostname: string,
callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void
callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void,
): void;

@@ -227,3 +227,3 @@ export function resolveSoa(hostname: string): Promise<SoaRecord>;

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
): void;

@@ -234,3 +234,3 @@ export function resolveSrv(hostname: string): Promise<SrvRecord[]>;

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
): void;

@@ -241,3 +241,3 @@ export function resolveTxt(hostname: string): Promise<string[][]>;

hostname: string,
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
): void;

@@ -244,0 +244,0 @@ export function resolveAny(hostname: string): Promise<AnyRecord[]>;

@@ -7,9 +7,9 @@ // Modified from the node.js definitions.

FSWatcher,
MakeDirectoryOptions,
NoParamCallback,
PathLike,
RmDirOptions,
WriteFileOptions,
Stats,
symlink as symlinkNS,
MakeDirectoryOptions,
WriteFileOptions,
} from "fs";

@@ -310,3 +310,3 @@ export * from "fs";

type: symlinkNS.Type | null | undefined,
callback: NoParamCallback
callback: NoParamCallback,
): void;

@@ -347,3 +347,3 @@

options: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null | undefined,
callback: (err: NodeJS.ErrnoException | null, linkString: string) => void
callback: (err: NodeJS.ErrnoException | null, linkString: string) => void,
): void;

@@ -362,3 +362,3 @@

options: { encoding: "buffer" } | "buffer",
callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void
callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void,
): void;

@@ -377,3 +377,3 @@

options: { encoding?: string | null | undefined } | string | null | undefined,
callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void
callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void,
): void;

@@ -390,3 +390,3 @@

path: PathLike,
callback: (err: NodeJS.ErrnoException | null, linkString: string) => void
callback: (err: NodeJS.ErrnoException | null, linkString: string) => void,
): void;

@@ -404,3 +404,3 @@

path: PathLike,
options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null
options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null,
): Promise<string>;

@@ -428,3 +428,3 @@

path: PathLike,
options?: { encoding?: string | null | undefined } | string | null
options?: { encoding?: string | null | undefined } | string | null,
): Promise<string | Buffer>;

@@ -443,3 +443,3 @@

options: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null | undefined,
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
): void;

@@ -458,3 +458,3 @@

options: { encoding: "buffer" } | "buffer",
callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void
callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void,
): void;

@@ -473,3 +473,3 @@

options: { encoding?: string | null | undefined } | string | null | undefined,
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void,
): void;

@@ -486,3 +486,3 @@

path: PathLike,
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
): void;

@@ -500,3 +500,3 @@

path: PathLike,
options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null
options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null,
): Promise<string>;

@@ -524,3 +524,3 @@

path: PathLike,
options?: { encoding?: string | null | undefined } | string | null
options?: { encoding?: string | null | undefined } | string | null,
): Promise<string | Buffer>;

@@ -532,3 +532,3 @@

options: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null | undefined,
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
): void;

@@ -538,3 +538,3 @@ function native(

options: { encoding: "buffer" } | "buffer",
callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void
callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void,
): void;

@@ -544,3 +544,3 @@ function native(

options: { encoding?: string | null | undefined } | string | null | undefined,
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void
callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void,
): void;

@@ -551,3 +551,3 @@ function native(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void;

path: PathLike,
options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null
options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null,
): Promise<string>;

@@ -557,3 +557,3 @@ function native(path: PathLike, options: { encoding: "buffer" } | "buffer"): Promise<Buffer>;

path: PathLike,
options: { encoding?: string | null | undefined } | string | null | undefined
options: { encoding?: string | null | undefined } | string | null | undefined,
): Promise<string | Buffer>;

@@ -619,3 +619,3 @@ }

options: number | string | MakeDirectoryOptions | null | undefined,
callback: NoParamCallback
callback: NoParamCallback,
): void;

@@ -654,3 +654,3 @@

options: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null | undefined,
callback: (err: NodeJS.ErrnoException | null, folder: string) => void
callback: (err: NodeJS.ErrnoException | null, folder: string) => void,
): void;

@@ -669,3 +669,3 @@

options: "buffer" | { encoding: "buffer" },
callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void
callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void,
): void;

@@ -684,3 +684,3 @@

options: { encoding?: string | null | undefined } | string | null | undefined,
callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void
callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void,
): void;

@@ -708,3 +708,3 @@

prefix: string,
options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null
options?: { encoding?: BufferEncoding | null | undefined } | BufferEncoding | null,
): Promise<string>;

@@ -732,3 +732,3 @@

prefix: string,
options?: { encoding?: string | null | undefined } | string | null
options?: { encoding?: string | null | undefined } | string | null,
): Promise<string | Buffer>;

@@ -747,3 +747,3 @@

options: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | null | undefined,
callback: (err: NodeJS.ErrnoException | null, files: string[]) => void
callback: (err: NodeJS.ErrnoException | null, files: string[]) => void,
): void;

@@ -762,3 +762,3 @@

options: { encoding: "buffer"; withFileTypes?: false | undefined } | "buffer",
callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void
callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void,
): void;

@@ -777,3 +777,3 @@

options: { encoding?: string | null | undefined; withFileTypes?: false | undefined } | string | null | undefined,
callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void
callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void,
): void;

@@ -801,3 +801,3 @@

options: { encoding?: string | null | undefined; withFileTypes: true },
callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void
callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void,
): void;

@@ -815,3 +815,3 @@

path: PathLike,
options?: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | null
options?: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | null,
): Promise<string[]>;

@@ -829,3 +829,3 @@

path: PathLike,
options: "buffer" | { encoding: "buffer"; withFileTypes?: false | undefined }
options: "buffer" | { encoding: "buffer"; withFileTypes?: false | undefined },
): Promise<Buffer[]>;

@@ -843,3 +843,3 @@

path: PathLike,
options?: { encoding?: string | null | undefined; withFileTypes?: false | undefined } | string | null
options?: { encoding?: string | null | undefined; withFileTypes?: false | undefined } | string | null,
): Promise<string[] | Buffer[]>;

@@ -855,3 +855,6 @@

*/
export function readdir(path: PathLike, options: { encoding?: string | null | undefined; withFileTypes: true }): Promise<Dirent[]>;
export function readdir(
path: PathLike,
options: { encoding?: string | null | undefined; withFileTypes: true },
): Promise<Dirent[]>;

@@ -888,3 +891,3 @@ /**

mode: string | number | null | undefined,
callback: (err: NodeJS.ErrnoException | null, fd: number) => void
callback: (err: NodeJS.ErrnoException | null, fd: number) => void,
): void;

@@ -902,3 +905,3 @@

flags: string | number,
callback: (err: NodeJS.ErrnoException | null, fd: number) => void
callback: (err: NodeJS.ErrnoException | null, fd: number) => void,
): void;

@@ -927,3 +930,3 @@

mtime: string | number | Date,
callback: NoParamCallback
callback: NoParamCallback,
): void;

@@ -951,3 +954,3 @@

mtime: string | number | Date,
callback: NoParamCallback
callback: NoParamCallback,
): void;

@@ -996,3 +999,3 @@

position: number | null | undefined,
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
): void;

@@ -1012,3 +1015,3 @@

length: number | null | undefined,
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
): void;

@@ -1026,3 +1029,3 @@

offset: number | null | undefined,
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
): void;

@@ -1038,3 +1041,3 @@

buffer: TBuffer,
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
): void;

@@ -1055,3 +1058,3 @@

length?: number,
position?: number | null
position?: number | null,
): Promise<[number, TBuffer]>;

@@ -1072,3 +1075,3 @@

encoding: string | null | undefined,
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
): void;

@@ -1087,3 +1090,3 @@

position: number | null | undefined,
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
): void;

@@ -1100,3 +1103,3 @@

data: any,
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void
callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
): void;

@@ -1116,3 +1119,3 @@

position?: number | null,
encoding?: string | null
encoding?: string | null,
): Promise<[number, string]>;

@@ -1135,3 +1138,3 @@

position: number | null,
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void,
): void;

@@ -1153,3 +1156,3 @@

length: number,
position: number | null
position: number | null,
): Promise<[number, TBuffer]>;

@@ -1168,3 +1171,3 @@

options: { encoding?: null | undefined; flag?: string | undefined } | null | undefined,
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void,
): void;

@@ -1184,3 +1187,3 @@

options: { encoding: string; flag?: string | undefined } | string,
callback: (err: NodeJS.ErrnoException | null, data: string) => void
callback: (err: NodeJS.ErrnoException | null, data: string) => void,
): void;

@@ -1200,3 +1203,3 @@

options: { encoding?: string | null | undefined; flag?: string | undefined } | string | null | undefined,
callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void
callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void,
): void;

@@ -1212,3 +1215,3 @@

path: PathLike | number,
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void
callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void,
): void;

@@ -1224,3 +1227,6 @@

*/
export function readFile(path: PathLike | number, options?: { encoding?: null | undefined; flag?: string | undefined } | null): Promise<Buffer>;
export function readFile(
path: PathLike | number,
options?: { encoding?: null | undefined; flag?: string | undefined } | null,
): Promise<Buffer>;

@@ -1238,3 +1244,3 @@ /**

path: PathLike | number,
options: { encoding: string; flag?: string | undefined } | string
options: { encoding: string; flag?: string | undefined } | string,
): Promise<string>;

@@ -1253,3 +1259,3 @@

path: PathLike | number,
options?: { encoding?: string | null | undefined; flag?: string | undefined } | string | null
options?: { encoding?: string | null | undefined; flag?: string | undefined } | string | null,
): Promise<string | Buffer>;

@@ -1274,3 +1280,3 @@

options: WriteFileOptions,
callback: NoParamCallback
callback: NoParamCallback,
): void;

@@ -1320,3 +1326,3 @@

options: WriteFileOptions,
callback: NoParamCallback
callback: NoParamCallback,
): void;

@@ -1355,3 +1361,3 @@

options: { persistent?: boolean | undefined; interval?: number | undefined } | undefined,
listener: (curr: Stats, prev: Stats) => void
listener: (curr: Stats, prev: Stats) => void,
): void;

@@ -1385,7 +1391,11 @@

options:
{ encoding?: BufferEncoding | null | undefined; persistent?: boolean | undefined; recursive?: boolean | undefined } |
BufferEncoding |
undefined |
null,
listener?: (event: string, filename: string) => void
| {
encoding?: BufferEncoding | null | undefined;
persistent?: boolean | undefined;
recursive?: boolean | undefined;
}
| BufferEncoding
| undefined
| null,
listener?: (event: string, filename: string) => void,
): FSWatcher;

@@ -1405,3 +1415,3 @@

options: { encoding: "buffer"; persistent?: boolean | undefined; recursive?: boolean | undefined } | "buffer",
listener?: (event: string, filename: Buffer) => void
listener?: (event: string, filename: Buffer) => void,
): FSWatcher;

@@ -1420,4 +1430,7 @@

filename: PathLike,
options: { encoding?: string | null | undefined; persistent?: boolean | undefined; recursive?: boolean | undefined } | string | null,
listener?: (event: string, filename: string | Buffer) => void
options:
| { encoding?: string | null | undefined; persistent?: boolean | undefined; recursive?: boolean | undefined }
| string
| null,
listener?: (event: string, filename: string | Buffer) => void,
): FSWatcher;

@@ -1550,3 +1563,3 @@

buffers: NodeJS.ArrayBufferView[],
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
): void;

@@ -1558,3 +1571,3 @@

position: number,
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
): void;

@@ -1565,3 +1578,3 @@

buffers: NodeJS.ArrayBufferView[],
position?: number
position?: number,
): Promise<[number, NodeJS.ArrayBufferView[]]>;
{
"name": "@types/mz",
"version": "2.7.4",
"version": "2.7.5",
"description": "TypeScript definitions for mz",

@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mz",

},
"typesPublisherContentHash": "0424243fd5242efa241aa0cac7c5a9fb70716c55c9ec9c36173270885375c31f",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "83adeae13a2ec066c643996cfc7caa5d041bac2f430116489833be27139dc371",
"typeScriptVersion": "4.5"
}

@@ -17,4 +17,4 @@ // Modified from the node.js definitions.

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;

@@ -30,4 +30,4 @@

completer?: Completer,
terminal?: boolean
terminal?: boolean,
): Interface;
export function createInterface(options: ReadLineOptions): Interface;

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 07 Jul 2021 00:01:46 GMT
* Last updated: Wed, 27 Sep 2023 09:42:16 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

// Modified from the node.js definitions.
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/zlib.d.ts
import { InputType, CompressCallback, BrotliOptions, ZlibOptions } from "zlib";
import { BrotliOptions, CompressCallback, InputType, ZlibOptions } from "zlib";
export * from "zlib";

@@ -6,0 +6,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc