UNPKG

hooks-plugin

Version:

A plugin system built through various hooks.

10 lines (9 loc) 288 B
import { SyncHook } from './SyncHook'; import type { ArgsType } from './Interface'; export declare class AsyncParallelHook< T extends Array<unknown>, C = null, > extends SyncHook<T, C, void | Promise<void>> { constructor(context?: C); emit(...data: ArgsType<T>): Promise<void>; }