20 lines
295 B
TypeScript
20 lines
295 B
TypeScript
declare global {
|
|
namespace Express {
|
|
interface Request {
|
|
auth?: {
|
|
user: {
|
|
id: string;
|
|
email: string;
|
|
name?: string | null;
|
|
};
|
|
session: {
|
|
id: string;
|
|
userId: string;
|
|
};
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|