Skip to content

@iamcalegari/mongoat / HookConfig

Interface: HookConfig<Ctx> ​

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

Declarative per-method hook configuration accepted by CreateModelProps.hooks.

Type Parameters ​

Ctx ​

Ctx

Properties ​

post? ​

optional post?: (HookFn<Ctx> | PostHookEntry<Ctx>)[]

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


pre? ​

optional pre?: HookFn<Ctx>[]

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