Skip to content

PrismHooks.add method

PrismHooks › add

Unofficial

Registers a callback for a hook.

Signature:

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

Parameters:

Parameter Type Description
name string The hook name.
callback HookCallback The callback to register.

Returns: void