I want to declare a string literal union type: "10" | "11" | ... "99".
I came up with a workaround, but didn't work
const arr = Array.from({
length: 90
}, (_, i) => i + 10) as const; // expected arr type is readonly [10, 11, ..., 99]
// If above works, then
type NumberToString<T extends number> = `${T}`;
type Successive = NumberToString<typeof arr[number]>;
I wonder if there is a way to quickly define "10" to "99" on top of type level?