hooks-plugin
Version:
A plugin system built through various hooks.
10 lines (9 loc) • 300 B
TypeScript
import { SyncHook } from './SyncHook';
import type { CallbackReturnType } from './Interface';
export declare class AsyncWaterfallHook<
T extends Record<any, unknown>,
C = null,
> extends SyncHook<[T], C, CallbackReturnType<T>> {
constructor(context?: C);
emit(data: T): Promise<T | false>;
}