mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix ts warnings
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
import { AccountV0 } from "./v0";
|
||||
|
||||
export { AccountV0 as StorageAccount }
|
||||
export type { AccountV0 as StorageAccount }
|
||||
|
@ -1,3 +1,3 @@
|
||||
import { GlobalV0 } from "./v0";
|
||||
import { GlobalV0 } from './v0'
|
||||
|
||||
export { GlobalV0 as StorageGlobal }
|
||||
export type { GlobalV0 as StorageGlobal }
|
||||
|
@ -11,7 +11,6 @@ export const versionStorageGlobal = storage.global.getNumber('version.global')
|
||||
|
||||
export async function migrateFromAsyncStorage(): Promise<void> {
|
||||
log('log', 'Migration', 'Migrating...')
|
||||
const start = global.performance.now()
|
||||
|
||||
const unwrapPushData = (setting: { value: boolean } | boolean | undefined): boolean =>
|
||||
typeof setting === 'object' ? setting.value : typeof setting === 'boolean' ? setting : true
|
||||
@ -176,6 +175,5 @@ export async function migrateFromAsyncStorage(): Promise<void> {
|
||||
|
||||
storage.global.set('version.global', 0)
|
||||
|
||||
const end = global.performance.now()
|
||||
log('log', 'Migration', `Migrated in ${end - start}ms`)
|
||||
log('log', 'Migration', 'Migrated')
|
||||
}
|
||||
|
Reference in New Issue
Block a user