MCPcopy
hub / github.com/colinhacks/zod / unwrapMessage

Function unwrapMessage

packages/zod/src/v4/core/util.ts:845–847  ·  view source on GitHub ↗
(message: string | { message: string } | undefined | null)

Source from the content-addressed store, hash-verified

843}
844
845export function unwrapMessage(message: string | { message: string } | undefined | null): string | undefined {
846 return typeof message === "string" ? message : message?.message;
847}
848
849export function finalizeIssue(
850 iss: errors.$ZodRawIssue,

Callers 1

finalizeIssueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected