Skip to main content

Interface: ZodIssueLike

Defined in: shared/utils/zodIssueFormatting.ts:40

Minimal shape of a Zod issue used for formatting.

Propertiesโ€‹

messageโ€‹

message: string;

Defined in: shared/utils/zodIssueFormatting.ts:41


path?โ€‹

optional path?: readonly ZodIssuePathPart[];

Defined in: shared/utils/zodIssueFormatting.ts:49

Path segments pointing to the offending value.

Remarksโ€‹

This is optional to allow callers to reuse the formatter with "Zod-like" issue objects that only provide a message.