Y
Hacker News
new
|
ask
|
show
|
jobs
by
hn_throwaway_99
2204 days 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
1 comments
mikewhy
2204 days ago
For a while, TypeScript has been able to check types using JSDoc. Since 2.3 I think, back in 2017.
link