PrismHooks.add method
PrismHooks › add
Unofficial
Registers a callback for a hook.Signature:
add(name: string, callback: HookCallback): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | The hook name. |
| callback | HookCallback | The callback to register. |
Returns: void