UNPKG

@speckle/shared

Version:

Shared code between various Speckle JS packages

15 lines 628 B
import type { Nullable } from '../helpers/utilityTypes.js'; /** * Utility for nicer reads/writes from/to LocalStorage without having to worry about the browser * throwing a hissy fit because the page is opened in Incognito mode or node not having localStorage at all */ export declare const SafeLocalStorage: { get(key: string): Nullable<string>; set(key: string, value: string): void; remove(key: string): void; /** * Flag for telling if we're using a real localStorage or faking it with a basic in-memory collection */ isRealLocalStorage: boolean; }; //# sourceMappingURL=localStorage.d.ts.map