Skip to content

Type Alias: HookFn

HookFn = (arg) => void | Promise<void>

Defined in: src/model/hooks.ts:5

A hook callback. May be async and may throw (a pre hook aborts the op).

Parameters

arg

any

Returns

void | Promise<void>

Released under the MIT License.