@feflow/cli
Version:
A front-end flow tool.
16 lines • 440 B
TypeScript
export default class Hook {
private readonly listeners;
private readonly maxListener;
constructor();
on(type: string, listener: Function): void;
emit(type: string, ...args: any[]): void;
/**
* Run hook `type` callbacks and then invoke `fn()`.
*
* @private
* @param {string} type
* @param {Function} fn
*/
hook(type: string, fn: Function): void;
}
//# sourceMappingURL=index.d.ts.map