@kui-shell/core
Version:
An Electron-based shell for cloud-native development
25 lines (24 loc) • 607 B
TypeScript
/**
* This module implements a simple localStorage layer for headless mode
*
*/
declare const _default: () => {
/**
* Retrieve an entry from localStorage. The LocalStorage API
* says to return null if there's no such key, to distinguish
* from the something being of value `undefined`.
*
*/
getItem: (key: string) => string;
/**
* Update an entry in localStorage
*
*/
setItem: (key: string, val: string) => string;
/**
* Remove an entry from localStorage
*
*/
removeItem: (key: string) => string;
};
export default _default;