UNPKG

bc-node-sdk

Version:

BetterCommerce's NodeJS SDK encapsulates the base framework for all the Next.js applications.

20 lines (19 loc) 586 B
export default abstract class LocalStorageUtil { /** * Sets an item in local storage by key. * @param key the key * @param data the data to store */ static setItem(key: string, data: any): void; /** * Retrieves an item from local storage by key. * @param key the key * @returns the item if it exists, otherwise null */ static getItem(key: string): any; /** * Removes an item from local storage by key. * @param key the key of the item to remove */ static removeItem(key: string): void; }