Notes/src/express.d.ts

28 lines
710 B
TypeScript
Raw Normal View History

import { Session } from "express-session";
export declare module "express-serve-static-core" {
interface Request {
session: Session & {
loggedIn: boolean;
lastAuthState: {
totpEnabled: boolean;
ssoEnabled: boolean;
};
2025-01-09 18:07:02 +02:00
};
headers: {
"x-local-date"?: string;
"x-labels"?: string;
2024-12-22 15:45:54 +02:00
2025-01-09 18:07:02 +02:00
authorization?: string;
"trilium-cred"?: string;
"x-csrf-token"?: string;
"trilium-component-id"?: string;
"trilium-local-now-datetime"?: string;
"trilium-hoisted-note-id"?: string;
"user-agent"?: string;
2025-01-09 18:07:02 +02:00
};
}
2024-12-22 15:45:54 +02:00
}