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

0.1.3 • Public • Published

Installation

npm install --save @types/intercept-stdout

Summary

This package contains type definitions for intercept-stdout (https://github.com/sfarthin/intercept-stdout).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/intercept-stdout.

index.d.ts

// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
type hookFunction = (txt: string) => string | void;
type unhookFunction = () => void;

declare function intercept(
    stdoutIntercept: hookFunction,
    stderrIntercept?: hookFunction,
): unhookFunction;

export = intercept;

Additional Details

  • Last updated: Wed, 22 Nov 2023 00:24:48 GMT
  • Dependencies: none

Credits

These definitions were written by Paulo Castro.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/intercept-stdout

Weekly Downloads

2,281

Version

0.1.3

License

MIT

Unpacked Size

3.18 kB

Total Files

5

Last publish

Collaborators

  • types