> The only other situation I have run into this in practice with TypeScript is when I'm using a library that has slightly misdefined types.
Unfortunately there's no way to know which libraries have defined their types correctly, so you end up having to check the types you get back from every library you use.
Unfortunately there's no way to know which libraries have defined their types correctly, so you end up having to check the types you get back from every library you use.