Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
moogly
on July 1, 2017
|
parent
|
context
|
favorite
| on:
Why We Chose Typescript
TypeScript can use JSdoc annotations:
https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-i...
danmaz74
on July 1, 2017
[–]
Thanks, but from a bit of research it's not clear to me: does this mean that it's possible to use TypeScript to type-check javascript files which include these annotations, without using .ts at all?
moogly
on July 1, 2017
|
parent
[–]
Yes, by using --allowJS and --checkJS switches (can also be set in tsconfig.json).
danmaz74
on July 2, 2017
|
root
|
parent
[–]
Thanks a lot - will try this!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: