@ngx-pwa/local-storage
Version:
Efficient local storage module for Angular: simple API based on native localStorage API, but internally stored via the asynchronous IndexedDB API for performance, and wrapped in RxJS observables to be homogeneous with other Angular modules.
21 lines (20 loc) • 664 B
TypeScript
/**
* Exception message when `indexedDB` is not working
*/
export declare const IDB_BROKEN_ERROR = "indexedDB is not working";
/**
* Exception raised when `indexedDB` is not working
*/
export declare class IDBBrokenError extends Error {
message: string;
}
/**
* Exception message when a value can't be serialized for `localStorage`
*/
export declare const SERIALIZATION_ERROR = "The storage is currently localStorage,\nwhere data must be serialized, and the provided data can't be serialized.";
/**
* Exception raised when a value can't be serialized for `localStorage`
*/
export declare class SerializationError extends Error {
message: string;
}