mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-26 18:59:44 +08:00
重构PWA状态管理
This commit is contained in:
26
src/types/pwa.d.ts
vendored
26
src/types/pwa.d.ts
vendored
@@ -1,26 +0,0 @@
|
||||
/**
|
||||
* PWA相关的类型声明
|
||||
*/
|
||||
|
||||
// 扩展Window接口
|
||||
declare global {
|
||||
interface Window {
|
||||
pwaStateController?: import('@/utils/pwaStateManager').PWAStateController
|
||||
orientation?: number
|
||||
}
|
||||
|
||||
interface Navigator {
|
||||
standalone?: boolean
|
||||
setAppBadge?: (count: number) => Promise<void>
|
||||
clearAppBadge?: () => Promise<void>
|
||||
}
|
||||
|
||||
// 自定义事件类型
|
||||
interface WindowEventMap {
|
||||
'pwaStateRestored': CustomEvent<{
|
||||
state: import('@/utils/pwaStateManager').PWAState
|
||||
}>
|
||||
}
|
||||
}
|
||||
|
||||
export {}
|
||||
Reference in New Issue
Block a user