DefinitelyTyped/types/intercept-stdout/index.d.ts
2019-09-24 14:29:51 -07:00

15 lines
458 B
TypeScript

// Type definitions for intercept-stdout 0.1
// Project: https://github.com/sfarthin/intercept-stdout
// Definitions by: Paulo Castro <https://github.com/pdcastro>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
type hookFunction = (txt: string) => string | void;
type unhookFunction = () => void;
declare function intercept(
stdoutIntercept: hookFunction,
stderrIntercept?: hookFunction,
): unhookFunction;
export = intercept;