fix(sw): only import matrix sdk types

This commit is contained in:
Kris Hu authored and GigiaJ committed 2026-02-15 19:06:46 -06:00
1 parent 6abd8ff6bf
commit 75816cf991
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
/// <reference lib="WebWorker" />
import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching';
import { usePushNotifications } from './sw/pushNotification';
import { EventType } from 'matrix-js-sdk';
import { EventType } from "matrix-js-sdk/lib/@types/event";
export type {};
declare const self: ServiceWorkerGlobalScope;
+1 -1
View File
@@ -1,4 +1,4 @@
import { EventType } from "matrix-js-sdk";
import { EventType } from "matrix-js-sdk/lib/@types/event";
const DEFAULT_NOTIFICATION_ICON = '/public/res/apple/apple-touch-icon-180x180.png';
const DEFAULT_NOTIFICATION_BADGE = '/public/res/apple-touch-icon-72x72.png';