Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Index

Constructors

  • new Hook<T, R, AdditionalOptions>(args?: FixedSizeArray<AsArray<T>["length"], string>, name?: string): Hook<T, R, AdditionalOptions>

Properties

name: undefined | string
taps: FullTap[]

Methods

  • Parameters

    Returns void

  • Parameters

    Returns void

  • isUsed(): boolean
  • Returns boolean

  • promise(...args: AsArray<T>): Promise<R>
  • Parameters

    Returns Promise<R>

  • tap(options: string | (TapOptions & { name: string } & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => R): void
  • Parameters

    Returns void

  • withOptions(options: TapOptions & IfSet<AdditionalOptions>): Omit<Hook<T, R, AdditionalOptions>, "promise" | "call" | "callAsync">
  • Parameters

    Returns Omit<Hook<T, R, AdditionalOptions>, "promise" | "call" | "callAsync">