Skip to main content

Type Alias: ExpectedErrorValue

ExpectedErrorValue = string | number | boolean | null | MessageRef | ExpectedErrorValue[] | {[key: string]: ExpectedErrorValue; }

Defined in: index.ts:21

A value an expected error carries for whoever renders its message. JSON-safe, so the error can cross a process or wire boundary intact, and a MessageRef so a value can point at copy its owner already defines.