I meant as an alternative to peerDependencies it's generally a better practice to document the interface you expect as an argument then to peer depend on something that implements that interface.

I could make `request-mocha` work with `xhr` in the browser because `xhr` implements the `request` interface, this would however break down if there was a peer dependency.