-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathreact-app.d.ts
More file actions
38 lines (34 loc) · 1003 Bytes
/
react-app.d.ts
File metadata and controls
38 lines (34 loc) · 1003 Bytes
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
/// <reference types="react-scripts" />
declare module 'crt-terminal' {
interface Options {
prompt?: () => string;
banner?: string;
buflen?: number;
tickrate?: number;
callback?: (enteredString: string) => void;
root: HTMLDivElement;
}
interface ITerminalObject {
focus: () => NodeJS.Timeout;
parse: (str: any) => void;
clear: () => string;
print: (output: any, center: any) => void;
destroy: () => void;
inputLock: (lock: any) => any;
setLoading: (status: boolean) => void;
}
// eslint-disable-next-line
export const terminal: (opts: Options) => ITerminalObject;
}
interface Window {
ethereum?: {
isMetaMask?: true;
on?: (...args: any[]) => void;
enable?: () => Promise<any>;
removeListener?: (...args: any[]) => void;
request?: (arg: { method: string; params?: any[] | undefined }) => Promise<any>;
autoRefreshOnNetworkChange?: boolean;
networkVersion?: string;
};
web3?: Record<string, unknown>;
}