fix build error

This commit is contained in:
ennmichael
2023-04-17 22:07:54 +02:00
parent d754551ebb
commit 1e5811b117
3 changed files with 10 additions and 24 deletions

View File

@ -7,9 +7,9 @@ declare global {
getPublicKey: () => Promise<PublicKey>
signEvent: <T extends RawEvent>(event: Unsigned<T>) => Promise<T>
getRelays?: () => Promise<{
[url: string]: { read: boolean; write: boolean }
}>
getRelays?: () => Promise<
Record<string, { read: boolean; write: boolean }>
>
nip04?: {
encrypt?: (pubkey: PublicKey, plaintext: string) => Promise<string>