Collect optional class fields in TypeScript

Viewed 85

Optional fields in TypeScript classes are not accessible via the getOwnPropertyNames and Object.keys methods. Is there a way to collect the optional field names of a class in TypeScript? Thank you.

0 Answers
Related