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.3 to 2.7.4

10

mz/child_process.d.ts

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

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

@@ -30,3 +30,3 @@ ): ChildProcess;

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

@@ -41,7 +41,7 @@ ): ChildProcess;

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

@@ -54,3 +54,3 @@

interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
encoding?: string | null;
encoding?: string | null | undefined;
}

@@ -57,0 +57,0 @@

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

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

@@ -373,3 +373,3 @@ ): void;

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

@@ -400,3 +400,3 @@ ): void;

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

@@ -424,3 +424,3 @@

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

@@ -438,3 +438,3 @@

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

@@ -467,3 +467,3 @@ ): void;

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

@@ -494,3 +494,3 @@ ): void;

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

@@ -518,3 +518,3 @@

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

@@ -525,3 +525,3 @@

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

@@ -536,3 +536,3 @@ ): void;

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

@@ -544,3 +544,3 @@ ): void;

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

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

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

@@ -645,3 +645,3 @@ }

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

@@ -674,3 +674,3 @@ ): void;

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

@@ -699,3 +699,3 @@ ): void;

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

@@ -723,3 +723,3 @@

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

@@ -737,3 +737,3 @@

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

@@ -752,3 +752,3 @@ ): void;

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

@@ -767,3 +767,3 @@ ): void;

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

@@ -791,3 +791,3 @@ ): void;

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

@@ -806,3 +806,3 @@ ): void;

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

@@ -820,3 +820,3 @@

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

@@ -834,3 +834,3 @@

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

@@ -846,3 +846,3 @@

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

@@ -1143,3 +1143,3 @@ /**

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

@@ -1159,3 +1159,3 @@ ): void;

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

@@ -1175,3 +1175,3 @@ ): void;

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

@@ -1199,3 +1199,3 @@ ): void;

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

@@ -1213,3 +1213,3 @@ /**

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

@@ -1228,3 +1228,3 @@

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

@@ -1327,3 +1327,3 @@

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

@@ -1358,3 +1358,3 @@ ): void;

options:
{ encoding?: BufferEncoding | null; persistent?: boolean; recursive?: boolean } |
{ encoding?: BufferEncoding | null | undefined; persistent?: boolean | undefined; recursive?: boolean | undefined } |
BufferEncoding |

@@ -1377,3 +1377,3 @@ undefined |

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

@@ -1393,3 +1393,3 @@ ): FSWatcher;

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

@@ -1396,0 +1396,0 @@ ): FSWatcher;

{
"name": "@types/mz",
"version": "2.7.3",
"version": "2.7.4",
"description": "TypeScript definitions for mz",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mz",
"license": "MIT",

@@ -29,4 +30,4 @@ "contributors": [

},
"typesPublisherContentHash": "c0d1bc54025ef5ad6189e15df3cc84ecf9aeae3c70c6e1693981229cf8b30396",
"typeScriptVersion": "3.3"
"typesPublisherContentHash": "0424243fd5242efa241aa0cac7c5a9fb70716c55c9ec9c36173270885375c31f",
"typeScriptVersion": "3.6"
}

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

export interface ReadLineOptions extends readline.ReadLineOptions {
completer?: Completer;
completer?: Completer | undefined;
}

@@ -25,0 +25,0 @@

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

### Additional Details
* Last updated: Tue, 08 Dec 2020 13:36:24 GMT
* Last updated: Wed, 07 Jul 2021 00:01:46 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

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

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