From 3aa9ce1b5985397d7f568887ec6f881df13c1034 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 11 Feb 2026 17:09:39 -0800 Subject: fix ts errors --- src/app.d.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/app.d.ts (limited to 'src/app.d.ts') diff --git a/src/app.d.ts b/src/app.d.ts new file mode 100644 index 00000000..3673ad85 --- /dev/null +++ b/src/app.d.ts @@ -0,0 +1,26 @@ +/// + +declare const grecaptcha: { + ready(callback: () => void): void; + execute(siteKey: string, options: { action: string }): Promise; +}; + +declare class NDEFReader { + constructor(); + scan(): Promise; + write(data: any): Promise; + addEventListener(type: string, listener: (event: any) => void): void; + removeEventListener(type: string, listener: (event: any) => void): void; +} + +interface Window { + nostr?: { + getPublicKey(): Promise; + signEvent(event: any): Promise; + nip04?: { + encrypt(pubkey: string, plaintext: string): Promise; + decrypt(pubkey: string, ciphertext: string): Promise; + }; + }; + maplibregl?: any; +} -- cgit v1.2.3