summaryrefslogtreecommitdiff
path: root/src/index.d.ts
diff options
context:
space:
mode:
authorRaphael Kabo <mail@raphaelkabo.com>2025-05-28 18:32:47 +0100
committerRaphael Kabo <mail@raphaelkabo.com>2025-05-28 18:32:47 +0100
commita6f8ec770d06ce33042ed3f222cba786897e0233 (patch)
treea060e72668de41fcbeae5e891ee86b096b096f26 /src/index.d.ts
parent08fa2f616c90e59066d0308097c65c424b5b4a88 (diff)
parentfd637b405c8784a07dabd54b10fda98ad9f4a4ad (diff)
Merge remote-tracking branch 'origin/main' into clearer-editing-mode
Diffstat (limited to 'src/index.d.ts')
-rw-r--r--src/index.d.ts17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/index.d.ts b/src/index.d.ts
index 292e5d3..4811f7f 100644
--- a/src/index.d.ts
+++ b/src/index.d.ts
@@ -1,14 +1,17 @@
import "express";
-import { GathioConfig } from "./lib/config.js";
+import { GathioConfig } from "./lib/config.ts";
+import { EmailService } from "./lib/email.ts";
+import { ExpressHandlebars } from "express-handlebars";
interface Locals {
config: GathioConfig;
}
-declare module "express" {
- export interface Response {
- locals: {
- config?: GathioConfig;
- };
+declare global {
+ namespace Express {
+ interface Request extends Express.Request {
+ hbsInstance: ExpressHandlebars;
+ emailService: EmailService;
+ }
}
-}
+} \ No newline at end of file