UNPKG

@aivron/sync-storage

Version:

A universal, synchronous storage solution for React (web & desktop) with support for core operations, bulk actions, JSON, TTL, and React hooks. For React Native, use @aivron/async-storage.

9 lines (8 loc) 616 B
import { StorageType, getDefaultStorage } from "./core"; export declare function filterStorageKeys(predicate: (key: string) => boolean, storage?: StorageType): string[]; export declare function getStorageItems(predicate: (key: string) => boolean, storage?: StorageType): { [key: string]: string; }; export declare function removeStorageKeys(predicate: (key: string) => boolean, storage?: StorageType): void; export declare function updateStorageItems(predicate: (key: string) => boolean, updateFn: (currentValue: string | null) => string, storage?: StorageType): void; export { getDefaultStorage, StorageType };