@types/intercept-stdout
Version:
TypeScript definitions for intercept-stdout
32 lines (23 loc) • 995 B
Markdown
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/intercept-stdout/index.d.ts)
````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 06:41:42 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Paulo Castro](https://github.com/pdcastro).