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