Re:TypeScript please give us types
by joshmarinacci on Friday July 07, 2023 @04:04PM
(#36637583)
Dynamically typed means I can look up the type of an object at runtime. JavaScript lets us do this with classes/prototypes. Since TypeScript adds types and enums and interfaces, why can’t it let us look up those at runtime too? It would seem to fit with the way JS works.
[ Parent
| on HN ]
There are no comments on this comment yet.