UNPKG

react-native-onyx

Version:

State management for React Native

10 lines (9 loc) 467 B
import type { ValueOf } from 'type-fest'; import { StorageErrorClass } from '../../errors'; /** * Classifies an IndexedDB write failure into the shared storage taxonomy (lib/storage/errors.ts). * Matching is done on the lowercased error name and message. This is the IndexedDB engine's own * dialect — it is NOT shared with other engines. */ declare function classifyIDBError(error: unknown): ValueOf<typeof StorageErrorClass>; export default classifyIDBError;