@uifabric/utilities
Version:
Fluent UI React utilities for building components.
12 lines (11 loc) • 449 B
TypeScript
/**
* Fetches an item from local storage without throwing an exception
* @param key The key of the item to fetch from local storage
*/
export declare function getItem(key: string): string | null;
/**
* Inserts an item into local storage without throwing an exception
* @param key The key of the item to add to local storage
* @param data The data to put into local storage
*/
export declare function setItem(key: string, data: string): void;