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
/// <reference types="node" />
type Chunk = Parameters<NodeJS.Process["stdout"]["write"]>[0];
type hookFunction = (chunk: Chunk) => Chunk;
type unhookFunction = () => void;
declare function intercept(
stdoutIntercept: hookFunction,
stderrIntercept?: hookFunction,
): unhookFunction;
export = intercept;
Additional Details
- Last updated: Tue, 19 Aug 2025 0642 GMT
- Dependencies: @types/node
Credits
These definitions were written by Paulo Castro.