UNPKG

382 BTypeScriptView Raw
1export declare type AsyncDebugBlock = () => unknown;
2export declare type DebugConsume = (debugLog: AsyncDebugBlock) => void;
3export interface DebugHandler {
4 debug: DebugConsume;
5}
6export declare class BufferedDebugHandler implements DebugHandler {
7 private buffer;
8 constructor();
9 debug(debugMsg: AsyncDebugBlock): void;
10 executeBufferedBlocks(): Array<unknown>;
11}