Interface ZodArrayDef<T>

interface ZodArrayDef<T> {
    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 (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

Generated using TypeDoc