Files
Compass/web/lib/app-update.ts
Martin Braquet ba9b3cfb06 Add pretty formatting (#29)
* Test

* Add pretty formatting

* Fix Tests

* Fix Tests

* Fix Tests

* Fix

* Add pretty formatting fix

* Fix

* Test

* Fix tests

* Clean typeckech

* Add prettier check

* Fix api tsconfig

* Fix api tsconfig

* Fix tsconfig

* Fix

* Fix

* Prettier
2026-02-20 17:32:27 +01:00

17 lines
397 B
TypeScript

import {registerPlugin} from '@capacitor/core'
interface AppUpdatePlugin {
checkForUpdate(): Promise<{
updateAvailable: boolean
immediateAllowed: boolean
flexibleAllowed: boolean
availableVersionCode: number
}>
startUpdate(options: {type: 'immediate' | 'flexible'}): Promise<void>
}
const AppUpdate = registerPlugin<AppUpdatePlugin>('AppUpdate')
export default AppUpdate