Skip to content

Commit 22d116c

Browse files
committed
types(session): session data values can be any pojo passing to JSON.stringify
1 parent e13663b commit 22d116c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { SealOptions } from "../../lib/iron-webcrypto";
99
import type { H3Event } from "../event";
1010
import { getCookie, setCookie } from "./cookie";
1111

12-
type SessionDataT = Record<string, string | number | boolean>;
12+
type SessionDataT = Record<string, any>;
1313
export type SessionData<T extends SessionDataT = SessionDataT> = T;
1414

1515
export interface Session<T extends SessionDataT = SessionDataT> {

0 commit comments

Comments
 (0)