Exposing the Axios constructor in index.d.ts #2872
@remcohaszing Can you return the favor and review this one, please? The reason behind this change is being able to
It should be non-breaking, but a second pair of eyes would be helpful.
I looked into it. This allow to use the following statements that were previously not possible:
import axios from 'Axios'; const foo = new axios.Axios(); // Use Axios constructor foo instanceof axios.Axios; // Instanceof check for Axios instance foo('/'); // This is unsupported, and now also an error in TypeScript
All of these cases are properly handled by the new type definitions, and it’s non-breaking. LGTM