UNPKG

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