4 ms·
Kind of maybe. See http://blog.wolksoftware.com/decorators-reflection-javascript-typescript http://blog.wolksoftware.com/decorators-reflection-javascrip... for
by slackingoff2017 9y ago
Kind of maybe. See http://blog.wolksoftware.com/decorators-reflection-javascript-typescript http://blog.wolksoftware.com/decorators-reflection-javascrip... for use of experimental reflection API.
Note that Typescript tries to follow JS to remain a superset that easily compiles down, and the metadata API is currently a stage II Ecma proposal so it's marked experimental.
It should be fairly easy to build a types casting method using that.