Browse Source

Fix types to match Typescripted IndexedDB store

pull/17962/head
Michael Telatynski 1 year ago
parent
commit
54ebd0cca1
  1. 4
      src/vector/indexeddb-worker.ts

4
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<typeof Worker>["postMessage"]);
global.onmessage = remoteWorker.onMessage;

Loading…
Cancel
Save