declare global { declare interface Fn { (...arg: T[]): T } declare type Nullable = T | null declare type ElRef = Nullable declare type Recordable = Record declare type ComponentRef = InstanceType declare type LocaleType = 'zh-CN' | 'en' declare type AxiosHeaders = | 'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data' declare type AxiosMethod = 'get' | 'post' | 'delete' | 'put' | 'GET' | 'POST' | 'DELETE' | 'PUT' declare type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' declare interface AxiosConfig { params?: any data?: any url?: string method?: AxiosMethod headersType?: string responseType?: AxiosResponseType } declare interface IResponse { code: string data: T extends any ? T : T & any } declare interface PageParam { pageSize?: number pageNo?: number } declare interface Tree { id: number name: string children?: Tree[] | any[] } }