/// <reference types="vite/client" /> | |
declare module "*.txt" { | |
const content: string; | |
export default content; | |
} | |
declare module '*.vue' { | |
import { DefineComponent } from 'vue' | |
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types | |
const component: DefineComponent<{}, {}, any> | |
export default component | |
} | |
declare module 'qs'; | |
declare type Recordable<T = any, K = string> = Record<K extends null | undefined ? string : K, T> | |
declare type AxiosHeaders = | |
| 'application/json' | |
| 'application/x-www-form-urlencoded' | |
| 'multipart/form-data' | |
declare type AxiosMethod = 'get' | 'post' | 'delete' | 'put' | |
declare type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | |
declare type AxiosConfig = { | |
params?: any | |
data?: any | |
url?: string | |
method?: AxiosMethod | |
headersType?: string | |
responseType?: AxiosResponseType | |
} | |