版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1 год назад
12345678910111213141516171819202122232425262728293031
  1. import { ConfigurableFlush, MaybeComputedRef, RemovableRef } from '@vueuse/shared';
  2. interface UseIDBOptions extends ConfigurableFlush {
  3. /**
  4. * Watch for deep changes
  5. *
  6. * @default true
  7. */
  8. deep?: boolean;
  9. /**
  10. * On error callback
  11. *
  12. * Default log error to `console.error`
  13. */
  14. onError?: (error: unknown) => void;
  15. /**
  16. * Use shallow ref as reference
  17. *
  18. * @default false
  19. */
  20. shallow?: boolean;
  21. }
  22. /**
  23. *
  24. * @param key
  25. * @param initialValue
  26. * @param options
  27. */
  28. declare function useIDBKeyval<T>(key: IDBValidKey, initialValue: MaybeComputedRef<T>, options?: UseIDBOptions): RemovableRef<T>;
  29. export { UseIDBOptions, useIDBKeyval };