Installation
npm install --save @types/foreground-child
Summary
This package contains type definitions for foreground-child (https://github.com/tapjs/foreground-child#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/foreground-child.
index.d.ts
// Type definitions for foreground-child 2.0
// Project: https://github.com/tapjs/foreground-child#readme
// Definitions by: Jake Bailey <https://github.com/jakebailey>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.2
type CloseHandler = (done: () => void) => void | Promise<void>;
declare function foregroundChild(program: string | string[], cb?: CloseHandler): void;
declare function foregroundChild(program: string, args: string[], cb?: CloseHandler): void;
declare function foregroundChild(program: string, ...args: string[]): void;
declare function foregroundChild(program: string, ...args: [...args: string[], cb: CloseHandler]): void;
export = foregroundChild;
Additional Details
- Last updated: Fri, 04 Nov 2022 16:02:52 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Jake Bailey.