Interface HookInterceptor<T, R, AdditionalOptions>

Type Parameters

Hierarchy

  • HookInterceptor

Properties

call?: ((...args) => void)

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: any[]

      Returns void

done?: (() => void)

Type declaration

    • (): void
    • Returns void

error?: ((err) => void)

Type declaration

    • (err): void
    • Parameters

      • err: Error

      Returns void

loop?: ((...args) => void)

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: any[]

      Returns void

name?: string
register?: ((tap) => TapOptions & {
    name: string;
} & {
    fn: Function;
    type: "async" | "promise" | "sync";
} & IfSet<AdditionalOptions>)

Type declaration

    • (tap): TapOptions & {
          name: string;
      } & {
          fn: Function;
          type: "async" | "promise" | "sync";
      } & IfSet<AdditionalOptions>
    • Parameters

      • tap: TapOptions & {
            name: string;
        } & {
            fn: Function;
            type: "async" | "promise" | "sync";
        } & IfSet<AdditionalOptions>

      Returns TapOptions & {
          name: string;
      } & {
          fn: Function;
          type: "async" | "promise" | "sync";
      } & IfSet<AdditionalOptions>

result?: ((result) => void)

Type declaration

    • (result): void
    • Parameters

      • result: R

      Returns void

tap?: ((tap) => void)

Type declaration

    • (tap): void
    • Parameters

      • tap: TapOptions & {
            name: string;
        } & {
            fn: Function;
            type: "async" | "promise" | "sync";
        } & IfSet<AdditionalOptions>

      Returns void

Generated using TypeDoc