I know this is not the first time asked, but old questions don't help. Is there a way to get all the keys of an interface in Typescript, without, an external package?
Asked
Active
Viewed 34 times
1
-
Not at runtime, no. Unless you use a runtime construct like a `Class` instead of an interface – nate-kumar Jan 11 '23 at 16:04
-
2Nothing has changed since the old questions, so there's not much to be done here other than to mark as a duplicate. – jcalz Jan 11 '23 at 16:13