@types/foreground-child
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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.

/@types/foreground-child/

    Package Sidebar

    Install

    npm i @types/foreground-child

    Weekly Downloads

    963

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    3.51 kB

    Total Files

    5

    Last publish

    Collaborators

    • types