tsconfig: remove typeRoots

merge-requests/3241/head
Alex Gleason 2024-11-09 14:42:58 -06:00
rodzic 2dbda40969
commit 7f007eb612
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
3 zmienionych plików z 13 dodań i 13 usunięć

13
src/global.d.ts vendored 100644
Wyświetl plik

@ -0,0 +1,13 @@
import type { NostrSigner } from '@nostrify/nostrify';
declare global {
interface Window {
nostr?: NostrSigner;
}
// FIXME: Remove this definition if the fix is merged upstream.
// https://github.com/egoist/vite-plugin-compile-time/pull/26
interface ImportMeta {
compileTime: <T>(id: string) => T;
}
}

Wyświetl plik

@ -1,7 +0,0 @@
import type { NostrSigner } from '@nostrify/nostrify';
declare global {
interface Window {
nostr?: NostrSigner;
}
}

Wyświetl plik

@ -16,14 +16,8 @@
"paths": {
"soapbox/*": ["src/*"],
},
"typeRoots": [
"./src/types",
"./node_modules/@types",
"./node_modules"
],
"types": [
"vite/client",
"vite-plugin-compile-time/client",
"@webbtc/webln-types"
]
}