Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Dec 11, 2024
1 parent 31aa742 commit eae7dff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,13 @@ export function session<Data = unknown, Key extends string = "session">(
[key in typeof key]: Data;
};

// @ts-expect-error WE SHOULD ADD * TO GRAMIO/TYPES usage
// TODO: WE SHOULD ADD * TO GRAMIO/TYPES usage
// @ts-ignore
const sessionKey = await getSessionKey(context);

const sessionData =
(await storage.get(sessionKey)) ??
// @ts-expect-error
// @ts-ignore
(options.initial && (await options.initial(context))) ??
{};
const onUpdate: () => unknown = () => storage.set(sessionKey, session);
Expand Down

0 comments on commit eae7dff

Please sign in to comment.