coerce: {
    bigint: (
        params?: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & { coerce?: boolean },
    ) => ZodBigInt;
    boolean: (
        params?: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & { coerce?: boolean },
    ) => ZodBoolean;
    date: (
        params?: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & { coerce?: boolean },
    ) => ZodDate;
    number: (
        params?: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & { coerce?: boolean },
    ) => ZodNumber;
    string: (
        params?: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & { coerce?: true },
    ) => ZodString;
}

Type declaration

  • bigint: (
        params?: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & { coerce?: boolean },
    ) => ZodBigInt
  • boolean: (
        params?: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & { coerce?: boolean },
    ) => ZodBoolean
  • date: (
        params?: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & { coerce?: boolean },
    ) => ZodDate
  • number: (
        params?: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & { coerce?: boolean },
    ) => ZodNumber
  • string: (
        params?: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & { coerce?: true },
    ) => ZodString