How to change the typescript type definition of a npm package

< H1 > problem description < / H1 >

I want to make some custom configurations for axios
such as axios.c = {}
, which is no problem in the original js file
but
prompts TS2551: Property "c" does not exist on type "AxiosStatic". after migrating to typescript. Did you mean "Cancel"?

how can this be done?


declare module 'axios' {
 interface AxiosInstance {
    c: any;
 }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3637a-2bffc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3637a-2bffc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?