Skip to main content

HookFunction

@abimongo/core v1.1.4


@abimongo/core / HookFunction

Type Alias: HookFunction()

HookFunction = (data) => Promise<void>

Defined in: core/src/types/schema.type.ts:24

Represents a hook function for middleware.

Parameters

data

any

The data passed to the hook.

Returns

Promise<void>

A promise that resolves when the hook is executed.