3 ms·
FWIW Flow actually let you write type annotations as comments so that the code was syntactically valid JavaScript. I'm not sure if TS ever had something like th
by hn_throwaway_99 6y ago
FWIW Flow actually let you write type annotations as comments so that the code was syntactically valid JavaScript. I'm not sure if TS ever had something like this.
https://flow.org/en/docs/types/comments https://flow.org/en/docs/types/comments
- mikewhy 6y agoFor a while, TypeScript has been able to check types using JSDoc. Since 2.3 I think, back in 2017.