Merge branch 'rm-type-roots' into 'main'

tsconfig: remove typeRoots

See merge request soapbox-pub/soapbox!3218
This commit is contained in:
Alex Gleason 2024-11-09 20:56:15 +00:00
commit 1abb3113ec
3 changed files with 13 additions and 13 deletions

13
src/global.d.ts vendored Normal file
View File

@ -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;
}
}

View File

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

View File

@ -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"
]
}