-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.d.ts
41 lines (35 loc) · 954 Bytes
/
types.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
import { IConfig } from '@requestnetwork/shared';
import { WalletState } from '@web3-onboard/core';
import type { RequestNetwork } from '@requestnetwork/request-client.js';
import { Config as WagmiConfig } from 'wagmi';
declare global {
namespace JSX {
interface IntrinsicElements {
'invoice-dashboard': InvoiceDashboardElement;
'create-invoice-form': CreateInvoiceFormElement;
}
}
}
interface InvoiceDashboardElement {
ref?: React.Ref<InvoiceDashboardProps>;
}
interface CreateInvoiceFormElement {
ref?: React.Ref<CreateInvoiceFormProps>;
}
interface InvoiceDashboardProps extends HTMLElement {
config: IConfig;
wallet: WalletState;
requestNetwork: RequestNetwork;
wagmiConfig: WagmiConfig;
}
interface CreateInvoiceFormProps extends HTMLElement {
config: IConfig;
signer: string;
requestNetwork: RequestNetwork;
wagmiConfig: WagmiConfig;
}
declare global {
interface Window {
ethereum: any;
}
}