mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-01-30 16:41:47 -05:00
16 lines
398 B
TypeScript
16 lines
398 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 |