From 54ebd0cca1f2f0e401f32c01ef17421e36ad2d5f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 12 Jul 2021 18:47:40 +0100 Subject: [PATCH] Fix types to match Typescripted IndexedDB store --- src/vector/indexeddb-worker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vector/indexeddb-worker.ts b/src/vector/indexeddb-worker.ts index 85070079de..e196cdfb35 100644 --- a/src/vector/indexeddb-worker.ts +++ b/src/vector/indexeddb-worker.ts @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { IndexedDBStoreWorker } from 'matrix-js-sdk/src/indexeddb-worker.js'; +import { IndexedDBStoreWorker } from 'matrix-js-sdk/src/indexeddb-worker'; -const remoteWorker = new IndexedDBStoreWorker(postMessage); +const remoteWorker = new IndexedDBStoreWorker(postMessage as InstanceType["postMessage"]); global.onmessage = remoteWorker.onMessage;