Some packages export only a single object. If I were to overwrite/extend that object: How would I do that?
After searching a lot of answers this is where I am:
import axios from "axios";
declare module "axios" {
const axios: {
not: () => void;
};
export = axios; // <- Exports and export assignments are not permitted in module augmentations.
}
axios.not();
This question is not about whether it is practical to overwrite axios here