import { Type, type TEnum, type TSchemaOptions } from "typebox"; export function StringEnum( values: readonly [...Values], options?: TSchemaOptions, ): TEnum { return Type.Enum([...values] as [string, ...string[]], options) as unknown as TEnum; }