API — Type Alias: HookErrorReporter

Type Alias: HookErrorReporter

type HookErrorReporter = (err) => void;

Defined in: render-svg/hooks.ts:87

Optional error sink for hook failures. If omitted, throws from hooks are silently swallowed and the default output is used for that phase. Consumers wanting logs pass their own pino/console reporter here.

Parameters

err

HookError

Returns

void