interface ZodArrayDef<T extends ZodTypeAny> {
    description?: string;
    errorMap?: ZodErrorMap;
    exactLength: null | {
        message?: string;
        value: number;
    };
    maxLength: null | {
        message?: string;
        value: number;
    };
    minLength: null | {
        message?: string;
        value: number;
    };
    type: T;
    typeName: ZodArray;
}

Type Parameters

Hierarchy-Diagram

UML class diagram of ZodArrayDef
Legend
icon for an interface in the UML class diagram interface
icon for a public property in the UML class diagram public property

Hierarchy (view full)

Properties

description?: string
errorMap?: ZodErrorMap
exactLength: null | {
    message?: string;
    value: number;
}

Type declaration

  • Optional message?: string
  • value: number
maxLength: null | {
    message?: string;
    value: number;
}

Type declaration

  • Optional message?: string
  • value: number
minLength: null | {
    message?: string;
    value: number;
}

Type declaration

  • Optional message?: string
  • value: number
type: T
typeName: ZodArray