1
1
export { }
2
2
declare global {
3
- declare interface Fn < T = any > {
3
+ interface Fn < T = any > {
4
4
( ...arg : T [ ] ) : T
5
5
}
6
6
7
- declare type Nullable < T > = T | null
7
+ type Nullable < T > = T | null
8
8
9
- declare type ElRef < T extends HTMLElement = HTMLDivElement > = Nullable < T >
9
+ type ElRef < T extends HTMLElement = HTMLDivElement > = Nullable < T >
10
10
11
- declare type Recordable < T = any , K = string > = Record < K extends null | undefined ? string : K , T >
11
+ type Recordable < T = any , K = string > = Record < K extends null | undefined ? string : K , T >
12
12
13
- declare type ComponentRef < T > = InstanceType < T >
13
+ type ComponentRef < T > = InstanceType < T >
14
14
15
- declare type LocaleType = 'zh-CN' | 'en'
15
+ type LocaleType = 'zh-CN' | 'en'
16
16
17
- declare type AxiosHeaders =
17
+ type AxiosHeaders =
18
18
| 'application/json'
19
19
| 'application/x-www-form-urlencoded'
20
20
| 'multipart/form-data'
21
21
22
- declare type AxiosMethod = 'get' | 'post' | 'delete' | 'put' | 'GET' | 'POST' | 'DELETE' | 'PUT'
22
+ type AxiosMethod = 'get' | 'post' | 'delete' | 'put' | 'GET' | 'POST' | 'DELETE' | 'PUT'
23
23
24
- declare type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'
24
+ type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'
25
25
26
- declare interface AxiosConfig {
26
+ interface AxiosConfig {
27
27
params ?: any
28
28
data ?: any
29
29
url ?: string
@@ -32,17 +32,17 @@ declare global {
32
32
responseType ?: AxiosResponseType
33
33
}
34
34
35
- declare interface IResponse < T = any > {
35
+ interface IResponse < T = any > {
36
36
code : string
37
37
data : T extends any ? T : T & any
38
38
}
39
39
40
- declare interface PageParam {
40
+ interface PageParam {
41
41
pageSize ?: number
42
42
pageNo ?: number
43
43
}
44
44
45
- declare interface Tree {
45
+ interface Tree {
46
46
id : number
47
47
name : string
48
48
children ?: Tree [ ] | any [ ]
0 commit comments