Skip to content

ParseFn

ParseFn<T> = (data) => T | Promise<T>

Defined in: src/core/types.ts:16

Validates/transforms the decoded body. May be async (e.g. a schema with async refinements); a throw or rejection becomes a ValidationError.

T

unknown

T | Promise<T>