2 ms·
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:
by MatthiasDev 3y 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 https://github.com/decoverto/decoverto
Another library would be https://github.com/typestack/class-transformer https://github.com/typestack/class-transformer