UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

28 lines 775 B
import { Store } from './types'; /** * Store using localStorage, or memory storage in incognito mode * * @example * * import { localStorageStore } from 'react-admin'; * * const App = () => ( * <Admin store={localStorageStore()}> * ... * </Admin> * ); */ export declare const localStorageStore: (version?: string, appKey?: string) => Store; declare class LocalStorageShim { valuesMap: any; getItem(key: string): string | null; setItem(key: string, value: string): void; removeItem(key: string): void; removeItems(keyPrefix: string): void; clear(): void; key(i: any): string; get length(): any; } export declare const getStorage: () => LocalStorageShim | Storage; export {}; //# sourceMappingURL=localStorageStore.d.ts.map