Skip to content

@iamcalegari/mongoat / PostHookEntry

Interface: PostHookEntry<Ctx> ​

Defined in: src/types/hooks.ts:45

Post-hook registration entry. When fireAndForget is set (opt-in), the hook dispatch is truly non-awaited (does not delay the caller's return) and any rejection is routed to onHookError instead of propagating to the caller.

Type Parameters ​

Ctx ​

Ctx

Properties ​

fireAndForget? ​

optional fireAndForget?: boolean

Defined in: src/types/hooks.ts:47


fn ​

fn: HookFn<Ctx>

Defined in: src/types/hooks.ts:46