Skip to content

ErrorSchema

type ErrorSchema<T extends JsonValue> = unknown

Phantom-typed marker for the JSON shape of a FlareError detail payload.

Learn: Typed errors

function errorSchema<T extends JsonValue>(): ErrorSchema<T>

Declares the JSON shape of a FlareError detail payload for type-level inference.

returns ErrorSchema<T>

Last updated: