Skip to content

PrismHooks.add method

PrismHooks › add

Unofficial

Registers a callback for a hook.

Signature:

add(name: string, callback: HookCallback): void

Parameters:

ParameterTypeDescription
namestringThe hook name.
callbackHookCallbackThe callback to register.

Returns: void