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

Type Parameters

  • HookNames extends string

Hierarchy (view full)

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.

Type declaration