diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 17:09:39 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 17:09:39 -0800 |
| commit | 3aa9ce1b5985397d7f568887ec6f881df13c1034 (patch) | |
| tree | 2c459692dc5315e92924de6be9f0999a835e0f54 /src/app.d.ts | |
| parent | 8a4b0087cbfe8b43d9b43d19af6d991a646ef3d7 (diff) | |
| download | coinos-ui-3aa9ce1b5985397d7f568887ec6f881df13c1034.tar.gz coinos-ui-3aa9ce1b5985397d7f568887ec6f881df13c1034.zip | |
fix ts errors
Diffstat (limited to 'src/app.d.ts')
| -rw-r--r-- | src/app.d.ts | 26 |
1 files changed, 26 insertions, 0 deletions
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 @@ +/// <reference types="@sveltejs/kit" /> + +declare const grecaptcha: { + ready(callback: () => void): void; + execute(siteKey: string, options: { action: string }): Promise<string>; +}; + +declare class NDEFReader { + constructor(); + scan(): Promise<void>; + write(data: any): Promise<void>; + addEventListener(type: string, listener: (event: any) => void): void; + removeEventListener(type: string, listener: (event: any) => void): void; +} + +interface Window { + nostr?: { + getPublicKey(): Promise<string>; + signEvent(event: any): Promise<any>; + nip04?: { + encrypt(pubkey: string, plaintext: string): Promise<string>; + decrypt(pubkey: string, ciphertext: string): Promise<string>; + }; + }; + maplibregl?: any; +} |
