Type Alias: FilterHandler<T>
FilterHandler<
T> = (value) =>T|Promise<T>
Defined in: Plugin/HookRegistry.ts:15
Generic typed hook system for plugin extensibility.
Two hook types:
- Filter hooks: transform data through a waterfall chain (each handler receives the previous result and returns a new one).
- Action hooks: fire-and-forget side-effect notifications.
Both are strongly typed via TFilterMap and TActionMap type parameters.
Performance: applyFilters / runActions check Map.has() first — zero cost when no handlers are registered for a given hook.
Type Parameters
T
T
Parameters
value
T
Returns
T | Promise<T>