I turned on strict null checking in TypeScript and it's wonderful. Everything it flags would cause dynamic errors in the real world.
-
-
I think strict allows explicit any?
-
Correct, it’s equivalent to `noImplicitAny`, `strictNullChecks`, `noImplicitReturns`, and `noImplicitThis`.
-
It allows *explicit* `any` for e.g. type narrowing (via type guards): give me anything and I’ll tell you if it’s of the type you need here.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
I'm at the point where I won't even use `any`. Always comes back to bite me.