I've been diving into TypeScripe recently and I'm working on creating some useful ts types.
For instance:
Here's an interface I've come up with:
interface Student{
name: string,
id: number,
gender: string
}
Now, I need to extract the keys from this interface to create a new Array type like so
type Arr = ['name', 'id', 'gender']
Any ideas on how I can write a utility type to achieve this?