-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.d.ts
48 lines (42 loc) · 886 Bytes
/
base.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
declare module 'vconsole'
declare module 'vconsole-atzuche-env'
interface Window {
isWX: boolean
isWXWork: boolean
isApp: boolean
isAlipay: boolean
isCSH: boolean
isSmallSwan: boolean
isJD: boolean
isJDMP: boolean
isMiniProgram: boolean
isiOS: boolean
isAndroid: boolean
isTT: boolean
}
interface Window {
dpr: number
rem: number
AMap: any
gio: any
my: any
wx: any
jd: any
swan: any
atzuche: any
NativeJsBridge: any
tt: any
}
interface Window {
platform: 'IOS' | 'ANDROID' | 'MINIPROGRAM-ALIPAY' | 'MINIPROGRAM-JD' | 'MINIPROGRAM-WECHAT' | 'WECHAT' | 'WECHAT-WORK' | 'ALIPAY' | 'JD' | 'WEB' | 'MINIPROGRAM-DOUYIN'
}
interface Dispatch<T> {
type: string
payload?: T
}
type DvaDispatch = <T, K = any>(args: Dispatch<T>) => Promise<K>
declare namespace NodeJS {
interface ProcessEnv {
REACT_APP_PACKAGE: 'dev' | 'prod'
}
}