refactor(tauri): use imported event and dialog APIs

This commit is contained in:
Shantur Rathore
2026-03-19 19:38:43 +00:00
parent 3d575f4f68
commit d735b189f5
7 changed files with 26 additions and 81 deletions

View File

@@ -17,13 +17,6 @@ declare global {
electronAPI?: unknown
__TAURI__?: {
core?: TauriCoreModule
event?: {
listen: (event: string, handler: (payload: { payload: unknown }) => void) => Promise<() => void>
}
dialog?: {
open?: (options: Record<string, unknown>) => Promise<string | string[] | null>
save?: (options: Record<string, unknown>) => Promise<string | null>
}
}
}
}