Skip to content

Commit

Permalink
types(session): session data values can be any pojo passing to `JSON.…
Browse files Browse the repository at this point in the history
…stringify`
  • Loading branch information
pi0 committed Feb 8, 2023
1 parent e13663b commit 22d116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { SealOptions } from "../../lib/iron-webcrypto";
import type { H3Event } from "../event";
import { getCookie, setCookie } from "./cookie";

type SessionDataT = Record<string, string | number | boolean>;
type SessionDataT = Record<string, any>;
export type SessionData<T extends SessionDataT = SessionDataT> = T;

export interface Session<T extends SessionDataT = SessionDataT> {
Expand Down

0 comments on commit 22d116c

Please sign in to comment.