diff --git a/src/types.ts b/src/types.ts index 51e188948..df2bd7268 100644 --- a/src/types.ts +++ b/src/types.ts @@ -3970,11 +3970,11 @@ export type FilterEnum = Values extends [] export type typecast = A extends T ? A : never; -function createZodEnum>( +function createZodEnum=Readonly<[U, ...U[]]>>( values: T, params?: RawCreateParams ): ZodEnum>; -function createZodEnum( +function createZodEnum( values: T, params?: RawCreateParams ): ZodEnum;