feat(desktop): custom update toast

This commit is contained in:
Adam 2025-12-18 04:26:17 -06:00 committed by Aiden Cline
commit 1ece7ebe50
7 changed files with 135 additions and 66 deletions

View file

@ -19,6 +19,12 @@ export type Platform = {
/** Storage mechanism, defaults to localStorage */
storage?: (name?: string) => SyncStorage | AsyncStorage
/** Check for updates (Tauri only) */
checkUpdate?(): Promise<{ updateAvailable: boolean; version?: string }>
/** Install updates (Tauri only) */
update?(): Promise<void>
}
export const { use: usePlatform, provider: PlatformProvider } = createSimpleContext({