forked from blockscout/frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
/
global.d.ts
45 lines (38 loc) · 1021 Bytes
/
global.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
import type { LuksoProfile } from '@lukso/web-components/dist/components/lukso-profile';
import type * as React from 'react';
import type { WalletProvider } from 'types/web3';
type CPreferences = {
zone: string;
width: string;
height: string;
};
type WebComponent<T> =
| (React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> &
Partial<T>)
| { children?: React.ReactNode; class?: string };
declare global {
export interface Window {
ethereum?: WalletProvider | undefined;
coinzilla_display: Array<CPreferences>;
ga?: {
getAll: () => Array<{ get: (prop: string) => string }>;
};
AdButler: {
ads: Array<unknown>;
register: (...args: unknown) => void;
};
abkw: string;
__envs: Record<string, string>;
}
namespace NodeJS {
interface ProcessEnv {
NODE_ENV: 'development' | 'production';
}
}
namespace JSX {
interface IntrinsicElements {
'lukso-profile': WebComponent<LuksoProfile>;
}
}
}
export {};