export const STATES = [
{ min: 35000, max: 36999, code: "AL", long: "Alabama" },
// all the states
{ min: 82000, max: 83199, code: "WY", long: "Wyoming" },
] as const;
export const StateCodesSchema = Schema.Literal(
...STATES.map(({ code }) => code),
);
export type StateCode = typeof StateCodesSchema.Type; // "AL" | ...all other states | "WY"
export const STATES = [
{ min: 35000, max: 36999, code: "AL", long: "Alabama" },
// all the states
{ min: 82000, max: 83199, code: "WY", long: "Wyoming" },
] as const;
export const StateCodesSchema = Schema.Literal(
...STATES.map(({ code }) => code),
);
export type StateCode = typeof StateCodesSchema.Type; // "AL" | ...all other states | "WY"