API reference / @evolu/common / Type / typeErrorToStandardSchemaIssues
Function: typeErrorToStandardSchemaIssues()
function typeErrorToStandardSchemaIssues<ExtraErrors>(
error,
formatTypeError,
path,
): readonly Issue[];
Defined in: packages/common/src/Type.ts:4093
Converts an Evolu TypeError to Standard Schema V1 issues format.
This function recursively converts Evolu's typed errors into the Standard Schema issue format with proper path tracking for nested structures.
Type Parameters
| Type Parameter | Default type |
|---|---|
ExtraErrors extends TypeError<Capitalize<string>> | never |
Parameters
| Parameter | Type | Default value |
|---|---|---|
error | TypeErrors<ExtraErrors> | undefined |
formatTypeError | TypeErrorFormatter<TypeErrors<ExtraErrors>> | undefined |
path | readonly PropertyKey[] | [] |
Returns
readonly Issue[]