feat(desktop): custom update toast

This commit is contained in:
Adam 2025-12-18 04:26:17 -06:00
commit e37a75a411
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
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({