@vegajs/storage
Version:
A flexible and type-safe storage service adapter for TypeScript and JavaScript. Supports various storage mechanisms like localStorage, query strings, and mock storage with both asynchronous and synchronous APIs.
1 lines • 331 B
JavaScript
class t{#t;constructor(t){this.#t=t}getItem(t){return this.#t.getItem(t)}getItemSync(t){return this.#t.getItemSync(t)}setItem(t,e){return this.#t.setItem(t,e)}setItemSync(t,e){return this.#t.setItemSync(t,e)}clearItem(t){return this.#t.clearItem(t)}clear(){this.#t.clear()}has(t){return this.#t.has(t)}}export{t as StorageService};