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

Function isDirty

packages/zod/src/v3/helpers/parseUtil.ts:173–173  ·  view source on GitHub ↗
(x: ParseReturnType<T>)

Source from the content-addressed store, hash-verified

171
172export const isAborted = (x: ParseReturnType<any>): x is INVALID => (x as any).status === "aborted";
173export const isDirty = <T>(x: ParseReturnType<T>): x is OK<T> | DIRTY<T> => (x as any).status === "dirty";
174export const isValid = <T>(x: ParseReturnType<T>): x is OK<T> => (x as any).status === "valid";
175export const isAsync = <T>(x: ParseReturnType<T>): x is AsyncParseReturnType<T> =>
176 typeof Promise !== "undefined" && x instanceof Promise;

Callers 2

handleParsedMethod · 0.85
parseUtil.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected