Is the solution here just to skip type checking the code of dependencies, and just check the types at the interface with your own code using your tool of choice? Or is it more complex than that?
I think the type systems are simple enough that this is probably a theoretical concern, and won't come up often in practice.