chore: upgrade to VueUse v10

This commit is contained in:
Anthony Fu 2023-05-02 01:58:55 +02:00
parent 076c47b7b0
commit 61526df93f
8 changed files with 106 additions and 61 deletions

View file

@ -1,4 +1,4 @@
import type { MaybeComputedRef, RemovableRef } from '@vueuse/core'
import type { MaybeRefOrGetter, RemovableRef } from '@vueuse/core'
import type { Ref } from 'vue'
import type { UseIDBOptions } from '@vueuse/integrations/useIDBKeyval'
import { del, get, set, update } from '~/utils/elk-idb'
@ -7,7 +7,7 @@ const isIDBSupported = !process.test && typeof indexedDB !== 'undefined'
export async function useAsyncIDBKeyval<T>(
key: IDBValidKey,
initialValue: MaybeComputedRef<T>,
initialValue: MaybeRefOrGetter<T>,
options: UseIDBOptions = {},
): Promise<RemovableRef<T>> {
const {