I'm looking for a way to take a string union type and use it to create a readonly array type basically given the following:
type Params = {
a: string,
b: number
}
type ParamKeys = keyof Params
I'd like to get the following type:
Readonly<['a', 'b']>
Is this possible?