Given the following type:
class Foo {
constructor(
private one: string,
private two: string,
private three: string) {
}
}
How can I have an array whose values are the type's properties?
e.g. I need to be able to get an array as:
['One', 'Two', 'Three']
Note I need to have the properties extracted from a type and not an instance otherwise I could simply use Object.keys(instanceOfFoo)
.