12 lines
449 B
TypeScript
12 lines
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;
|