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