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.