forked from tahowallet/extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.d.ts
32 lines (30 loc) · 799 Bytes
/
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
/// <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: any[]) => void
) => unknown
removeListener: (
eventName: string | symbol,
listener: (...args: any[]) => void
) => unknown
}
ethereum?: {
isMetaMask?: boolean
isTally?: boolean
on?: (
eventName: string | symbol,
listener: (...args: any[]) => void
) => unknown
removeListener?: (
eventName: string | symbol,
listener: (...args: any[]) => void
) => unknown
autoRefreshOnNetworkChange?: boolean
}
}