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 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: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Jake Bailey.