html-reporter
Version:
Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.
23 lines (22 loc) • 567 B
TypeScript
/**
* Wrap localStorage#setItem method
* Support value serialization
* @param key
* @param value
*/
export function setItem(key: any, value: any): void;
/**
* Wrap localStorage#getItem method
* Parse deserialize storage value
* If key doesn't exist in storage return defaultValue
* @param key
* @param defaultValue
* @returns {object|string}
*/
export function getItem(key: any, defaultValue: any): object | string;
/**
* Checks whether the key is contained in storage.
* @param key
* @returns {boolean}
*/
export function hasItem(key: any): boolean;