This allows you to create a standard union type, but be able to iterate over it in vanilla JS.
export const status = ["Open", "Pending", "Closed"] as const; export type Status = typeof status[number] // The Status type above is now this Union: // export type Status = "Open" | "Pending" | "Closed"