Re:Why if TYPE_CHECKING?
by vbezhenar on Wednesday December 20, 2023 @12:41PM
(#38711313)
Typescript "compilation" is just stripping out types, mostly. JavaScript is a subset of TypeScript (mostly). There was even a proposal to extend JavaScript comments syntax, so all typescript types would become comments (so you could just run typescript code with JS interpreter).
[ Parent
| on HN ]
There are no comments on this comment yet.