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