diff --git a/src/session/mod.ts b/src/session/mod.ts index 17c6b59..7917237 100644 --- a/src/session/mod.ts +++ b/src/session/mod.ts @@ -1,3 +1,4 @@ +import type { PageProps } from '$fresh/server.ts' import { getCookies } from '@std/http/cookie' type SessionEntry = { @@ -6,6 +7,13 @@ type SessionEntry = { value: T } +export interface SessionState { + session: Session +} + +export type SessionPageProps> = + PageProps + export class SessionStore { static #store = new Map()