Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HooksRegistration

Hierarchy

  • HooksRegistration

Implemented by

Index

Methods

Methods

after

  • after<K>(name: K, callback: HookCallbacks[K]): any
  • Register a hook which will be invoked after the execution of regular hooks.

    Type parameters

    Parameters

    • name: K

      the name

    • callback: HookCallbacks[K]

      the callback

    Returns any

before

  • before<K>(name: K, callback: HookCallbacks[K]): any
  • Register a hook which will be invoked before the execution of regular hooks.

    Type parameters

    Parameters

    • name: K

      the name

    • callback: HookCallbacks[K]

      the callback

    Returns any

on

  • on<K>(name: K, callback: HookCallbacks[K]): any
  • Register a hook.

    Type parameters

    Parameters

    • name: K

      the name

    • callback: HookCallbacks[K]

      the callback

    Returns any

Generated using TypeDoc