UNPKG

459 BTypeScriptView Raw
1/**
2 * Fetches an item from session storage without throwing an exception
3 * @param key The key of the item to fetch from session storage
4 */
5export declare function getItem(key: string): string | null;
6/**
7 * Inserts an item into session storage without throwing an exception
8 * @param key The key of the item to add to session storage
9 * @param data The data to put into session storage
10 */
11export declare function setItem(key: string, data: string): void;