Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lobster_johnson
· 10y ago · 0 comments
It sounds like --allowJs alleviates the need to create TypeScript definitions for everything? So if you have an existing project based entirely on JavaScript, you can gradually convert each file to .ts without having to do anything else?
Comments
[–]
nojvek
10y ago
That is true. You slowly add more black typescript to a white js project as you go along and decide the shade of grey you want.
[–]
danielearwicker
10y ago
Definitely an aim of TS to make it easier to continue using JS for those who prefer a half-way house, see:
https://github.com/Microsoft/TypeScript/issues/4789