mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-24 10:56:21 -05:00
* 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
17 lines
397 B
TypeScript
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
|