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

2.0.0 • 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 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.

Keywords

none

Install

npm i @types/foreground-child

DownloadsWeekly Downloads

1,437

Version

2.0.0

License

MIT

Unpacked Size

4.08 kB

Total Files

5

Last publish

Collaborators

  • types