ever-given
Version:
A package that blocks the flow of a specific channel
9 lines • 408 B
TypeScript
export declare type InvokableCode = (...args: any[]) => any;
export declare const noop: InvokableCode;
/**
* @param {number} blockTime The time the channel should be blocked
* @param {Function} channel The code to execute once the block is lifted
* @returns
*/
export declare const block: (blockTime: number, channel?: InvokableCode) => Promise<InvokableCode>;
//# sourceMappingURL=index.d.ts.map