Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/api/src/common/router/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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 {
Expand Down