1
0
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:
xmflsct
2023-02-11 22:04:32 +01:00
parent fcc53672fa
commit b679c0760f
19 changed files with 46 additions and 46 deletions

View File

@ -1,3 +1,3 @@
import { AccountV0 } from "./v0";
export { AccountV0 as StorageAccount }
export type { AccountV0 as StorageAccount }

View File

@ -1,3 +1,3 @@
import { GlobalV0 } from "./v0";
import { GlobalV0 } from './v0'
export { GlobalV0 as StorageGlobal }
export type { GlobalV0 as StorageGlobal }

View File

@ -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')
}