forked from tahowallet/extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.d.ts
45 lines (43 loc) · 1.12 KB
/
env.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
/// <reference types="styled-jsx" />
// Although you would expect this file to be unnecessary, removing it will
// result in a handful of type errors. See PR #196.
declare module "styled-jsx/style"
interface Window {
tally?: {
isTally: boolean
on: (
eventName: string | symbol,
listener: (...args: unknown[]) => void
) => unknown
removeListener: (
eventName: string | symbol,
listener: (...args: unknown[]) => void
) => unknown
}
ethereum?: {
isMetaMask?: boolean
isTally?: boolean
on?: (
eventName: string | symbol,
listener: (...args: unknown[]) => void
) => unknown
removeListener?: (
eventName: string | symbol,
listener: (...args: unknown[]) => void
) => unknown
autoRefreshOnNetworkChange?: boolean
}
oldEthereum?: {
isMetaMask?: boolean
isTally?: boolean
on?: (
eventName: string | symbol,
listener: (...args: unknown[]) => void
) => unknown
removeListener?: (
eventName: string | symbol,
listener: (...args: unknown[]) => void
) => unknown
autoRefreshOnNetworkChange?: boolean
}
}