Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AroundHandler

The parent type of before- and after-handlers.

Hierarchy

Index

Methods

Methods

exec

  • Sets an executor on this handler. Executors run in order of registration.

    Parameters

    • func: function

      The executor function to execute.

        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns AroundHandler

    This handler, for the sake of chaining.

when

  • Sets a filter on this handler. If the predicate fails, all executors registered after this filter won't run.

    Parameters

    • filter: function

      The predicate to filter by.

        • (...args: any[]): boolean
        • Parameters

          • Rest ...args: any[]

          Returns boolean

    Returns AroundHandler

    This handler, for the sake of chaining.

Generated using TypeDoc