From 7f007eb612ed9d8836548d5f863ca2bd980f9e28 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 9 Nov 2024 14:42:58 -0600 Subject: [PATCH] tsconfig: remove typeRoots --- src/global.d.ts | 13 +++++++++++++ src/types/window.d.ts | 7 ------- tsconfig.json | 6 ------ 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 src/global.d.ts delete mode 100644 src/types/window.d.ts diff --git a/src/global.d.ts b/src/global.d.ts new file mode 100644 index 000000000..0301f98b1 --- /dev/null +++ b/src/global.d.ts @@ -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: (id: string) => T; + } +} \ No newline at end of file diff --git a/src/types/window.d.ts b/src/types/window.d.ts deleted file mode 100644 index 7435f9dd2..000000000 --- a/src/types/window.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { NostrSigner } from '@nostrify/nostrify'; - -declare global { - interface Window { - nostr?: NostrSigner; - } -} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 8eed381dd..92a209b21 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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" ] }