logos-delivery-frontend/src/react-app-env.d.ts

15 lines
393 B
TypeScript
Raw Normal View History

2023-10-30 23:57:10 +01:00
/// <reference types="react-scripts" />
type EthereumEvents = "accountsChanged" | "chainChanged";
type EthereumEventListener = (v: any) => void;
type Ethereum = {
2023-11-06 23:48:24 +01:00
request: (v?: any) => Promise<void>;
2023-10-30 23:57:10 +01:00
on: (name: EthereumEvents, fn: EthereumEventListener) => void;
removeListener: (name: EthereumEvents, fn: EthereumEventListener) => void;
};
interface Window {
ethereum: Ethereum;
}