Hacker News new | ask | show | jobs
by MatthiasDev 1097 days ago
Type reflection with TypeScript is fairly limited at the moment, though what you are describing can be done with decorators.

I have made such a library myself: https://github.com/decoverto/decoverto

Another library would be https://github.com/typestack/class-transformer