diff --git a/src/storage.ts b/src/storage.ts index 8ad7293..187483c 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -40,7 +40,9 @@ export async function lscStorage>(key: string): Pr * const user = await lscStorage("user"); * console.log(user); // { name: "John Doe", age: 25 } */ + export async function lscStorage>(key: string, value?: T): Promise { + // this method need to be remove as soon as possible try { if (value !== undefined) { localStorage.setItem(key, JSON.stringify(value));