From b65782e13c210ccf2a18a09821e8802924d902c2 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 7 Oct 2021 15:59:16 +0200 Subject: [PATCH] ignore tsc errors on vite-specific imports or not understood by tsc in any case --- src/mocks/Storage.ts | 2 ++ src/platform/web/sdk/paths/vite.ts | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/mocks/Storage.ts b/src/mocks/Storage.ts index 2760c061..f9473c6c 100644 --- a/src/mocks/Storage.ts +++ b/src/mocks/Storage.ts @@ -14,7 +14,9 @@ See the License for the specific language governing permissions and limitations under the License. */ +// @ts-ignore import FDBFactory from "fake-indexeddb/lib/FDBFactory.js"; +// @ts-ignore import FDBKeyRange from "fake-indexeddb/lib/FDBKeyRange.js"; import {StorageFactory} from "../matrix/storage/idb/StorageFactory"; import {IDOMStorage} from "../matrix/storage/idb/types"; diff --git a/src/platform/web/sdk/paths/vite.ts b/src/platform/web/sdk/paths/vite.ts index eca08827..6739f8d8 100644 --- a/src/platform/web/sdk/paths/vite.ts +++ b/src/platform/web/sdk/paths/vite.ts @@ -1,7 +1,12 @@ +// @ts-ignore import _downloadSandboxPath from "../../assets/download-sandbox.html?url"; +// @ts-ignore import _workerPath from "../../worker/main.js?url"; +// @ts-ignore import olmWasmPath from "@matrix-org/olm/olm.wasm?url"; +// @ts-ignore import olmJsPath from "@matrix-org/olm/olm.js?url"; +// @ts-ignore import olmLegacyJsPath from "@matrix-org/olm/olm_legacy.js?url"; export const olmPaths = {