@openmrs/esm-utils
Version:
Helper utilities for OpenMRS
11 lines • 508 B
TypeScript
/** @module @category Utility */
/**
* Simple utility function to determine if an object implementing the WebStorage API
* is actually available. Useful for testing the availability of `localStorage` or
* `sessionStorage`.
*
* @param storage The WebStorage API object to check. Defaults to `localStorage`.
* @returns True if the WebStorage API object is able to be accessed, false otherwise
*/
export declare function canAccessStorage(storage?: Storage): boolean;
//# sourceMappingURL=storage.d.ts.map