Skip to content

HookHandler beta ​

TypeAlias of @v12-engine/engine

ts
export type HookHandler<K extends HookName> = (world: World, event: HookEvents[K]) => void;

The function a handler for the hook K is, taking the world and the hook's event