type alias HookFn

A lifecycle hook callback that receives an Assert instance and a meta object with the shared context.

Type Parameters

A = unknown

Definition

(
assert: A,
meta: { context: Record<string, unknown>; }
) => void | Promise<void>

Usage

import { type HookFn } from ".";