diff --git a/packages/api/src/common/router/index.d.ts b/packages/api/src/common/router/index.d.ts index 260c83ee..aba8dd43 100644 --- a/packages/api/src/common/router/index.d.ts +++ b/packages/api/src/common/router/index.d.ts @@ -9,10 +9,14 @@ export interface Cookie { sameSite?: 'Strict' | 'Lax' | 'None' | undefined; } -export type Session = { +export interface Session { [key: string]: any; }; +export interface Context { + [key: string]: any; +} + export interface Request { invalidateSession(): void; /** @@ -43,7 +47,7 @@ export interface Request { /** * Can be populated in a hooks context and read from a render context */ - context: unknown | null; + context: Context; } export interface Response {