- string(
params?: {
description?: string;
errorMap?: ZodErrorMap;
invalid_type_error?: string;
message?: string;
required_error?: string;
} & { coerce?: true },
): ZodString Parameters
Optional
params: {
description?: string;
errorMap?: ZodErrorMap;
invalid_type_error?: string;
message?: string;
required_error?: string;
} & { coerce?: true }