Interface ParseContext

interface ParseContext {
    common: {
        async: boolean;
        contextualErrorMap?: ZodErrorMap;
        issues: ZodIssue[];
    };
    data: any;
    parent: null | ParseContext;
    parsedType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "map" | "nan" | "integer" | "float" | "date" | "null" | "array" | "unknown" | "promise" | "void" | "never" | "set";
    path: ParsePath;
    schemaErrorMap?: ZodErrorMap;
}

Properties

common: {
    async: boolean;
    contextualErrorMap?: ZodErrorMap;
    issues: ZodIssue[];
}

Type declaration

  • Readonly async: boolean
  • Optional Readonly contextualErrorMap?: ZodErrorMap
  • Readonly issues: ZodIssue[]
data: any
parent: null | ParseContext
parsedType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "map" | "nan" | "integer" | "float" | "date" | "null" | "array" | "unknown" | "promise" | "void" | "never" | "set"
path: ParsePath
schemaErrorMap?: ZodErrorMap

Generated using TypeDoc