mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
28 lines
710 B
TypeScript
28 lines
710 B
TypeScript
import { Session } from "express-session";
|
|
|
|
export declare module "express-serve-static-core" {
|
|
interface Request {
|
|
session: Session & {
|
|
loggedIn: boolean;
|
|
lastAuthState: {
|
|
totpEnabled: boolean;
|
|
ssoEnabled: boolean;
|
|
};
|
|
};
|
|
headers: {
|
|
"x-local-date"?: string;
|
|
"x-labels"?: string;
|
|
|
|
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;
|
|
};
|
|
}
|
|
}
|