test.ts:
import axios from 'axios'
console.log(axios.get('https://www.xxx.com'))
报错:TS2339: Property 'get' does not exist on type 'typeof Axios'.
虽然可以这样解决,但是每次都要类型断言一次太麻烦了
import axios from 'axios'
console.log((axios as any).get('https://www.xxx.com'))
求大神指点指点