mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
chore(types): adapt to new express type definitions
This commit is contained in:
21
src/express.d.ts
vendored
Normal file
21
src/express.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Session } from "express-session";
|
||||
|
||||
export declare module "express-serve-static-core" {
|
||||
interface Request {
|
||||
session: Session & {
|
||||
loggedIn: 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user