- enum<U extends string, T extends readonly [U, U, T]>(
values: T,
params?: RawCreateParams,
): ZodEnum<Writeable<T>> Type Parameters
- U extends string
- T extends readonly [U, U, T]
- enum<U extends string, T extends [U, ...U[]]>(
values: T,
params?: RawCreateParams,
): ZodEnum<T> Type Parameters
- U extends string
- T extends [U, ...U[]]