Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tgv
on Nov 1, 2020
|
parent
|
context
|
favorite
| on:
Intent to stop using 'null' in my JS code
You need to add
// @ts-check
at the top of the file:
https://www.typescriptlang.org/docs/handbook/intro-to-js-ts....
moron4hire
on Nov 1, 2020
|
next
[–]
There is a config setting for enabling it globally now
https://www.typescriptlang.org/tsconfig#checkJs
afiori
on Nov 1, 2020
|
prev
[–]
I was missing this, thank you.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: