How to use strictNullChecks with libraries that are not nullCheck safe

I feel like I'm missing something big here. I read all the details about the new strong authentication in typescript 2.0 . I would like to use it, but when I include it in my projects, it detects problems with the supporting libraries that I use, and their associated type definitions.

I can change my code to have sound type definitions, but I don’t have an easy way to update all the other libraries that I use. Does this mean that I cannot use strictNullCheck until / if the libraries that I use are strictly safe?

+5
source share
1 answer

After looking around for quite a while, I finally found that using the skipDefaultLibCheck compiler skipDefaultLibCheck , you can get most of what I need here.

+1
source

All Articles