fix(tauri): align wake lock bridge with v2 API

This commit is contained in:
Shantur Rathore
2026-03-19 19:20:18 +00:00
parent b58728dc0e
commit 3d575f4f68
13 changed files with 1102 additions and 1515 deletions

View File

@@ -9,10 +9,14 @@ export interface RuntimeEnvironment {
}
declare global {
interface TauriCoreModule {
invoke: <T = unknown>(cmd: string, args?: Record<string, unknown>) => Promise<T>
}
interface Window {
electronAPI?: unknown
__TAURI__?: {
invoke?: <T = unknown>(cmd: string, args?: Record<string, unknown>) => Promise<T>
core?: TauriCoreModule
event?: {
listen: (event: string, handler: (payload: { payload: unknown }) => void) => Promise<() => void>
}