interface NewHookable<HookNames extends string> {
    noHooks?:
        | boolean
        | readonly HookNames[]
        | { except: readonly HookNames[] };
}

Type Parameters

  • HookNames extends string

Hierarchy (View Summary)

Properties

Properties

noHooks?: boolean | readonly HookNames[] | { except: readonly HookNames[] }

Controls which hooks should be run.

Possible values:

  • false: All hooks will be run. (default)
  • true: No hooks will be run.
  • An array of strings: The hooks listed in the array will not be run.
  • An object with the "except" property: Only the hooks listed in the array will be run.