I'm sorry for the bad title, I'm not sure how to describe the situation and maybe that's why I still haven't found the solution
i have an interface
interface Fields {
name: string
age: number
}
and I would like to extract the keys to create a type, for example
type FieldList = ?
// expected result
// type FieldList = 'name' | 'age'
and at another time I would like to use the extracted type to create an array
const list: FieldList = ['name', 'age']