I want to ask you, when I export types AxiosRequestConfig and AxiosResponse from Axios, an error occurs
I used it this way before:
import type { AxiosRequestConfig, AxiosResponse } from 'axios'
Now use unplugin-auto-import
declare global {
// error: Property 'AxiosRequestConfig' does not exist on type 'typeof import("g:/project/vue3-ts-pinia/node_modules/axios/index")'.ts
const AxiosRequestConfig: typeof import('axios')['AxiosRequestConfig']
// error: Property 'AxiosResponse' does not exist on type 'typeof import("g:/project/vue3-ts-pinia/node_modules/axios/index")'.
const AxiosResponse: typeof import('axios')['AxiosResponse']
}
I want to ask you, when I export types AxiosRequestConfig and AxiosResponse from Axios, an error occurs I used it this way before:
import type { AxiosRequestConfig, AxiosResponse } from 'axios'
Now use unplugin-auto-importauto-import.d.ts:
What should I do?
Thank you very much.