index.d.ts 376 B

1234567891011121314151617
  1. interface hable {
  2. hook (name: string, fn: (...args: any) => Promise<void> | void): void;
  3. deprecateHook (old: string, name: string): void;
  4. deprecateHooks (deprecatedHooks: object): void;
  5. addHooks (configHooks: object): void;
  6. callHook (name: string, ...args: any) : Promise<void>;
  7. clearHook (name: string): void;
  8. clearHooks (): void;
  9. }
  10. export default hable