5 lines
202 B
TypeScript
5 lines
202 B
TypeScript
declare type Callback = (stream: 'stdout' | 'stderr', data: string) => void;
|
|
declare type Restore = () => void;
|
|
declare const patchConsole: (callback: Callback) => Restore;
|
|
export default patchConsole;
|