diff options
author | INOUE Daisuke <inoue.daisuke@gmail.com> | 2025-05-03 22:38:45 +0900 |
---|---|---|
committer | INOUE Daisuke <inoue.daisuke@gmail.com> | 2025-05-03 22:38:45 +0900 |
commit | 861fff32a70c5631e3061fe3d68fbe83c9d9bc3b (patch) | |
tree | 6d677e86b42c78de3d72c78286db0481873123d5 /src/index.d.ts | |
parent | d901c09ff606d9298fbefd7ecefb6dd3bfe22ac2 (diff) | |
parent | 69f75005303d634b9208c23068655385734f4d3a (diff) |
Merge branch 'main' into feature/localization-again
Diffstat (limited to 'src/index.d.ts')
-rw-r--r-- | src/index.d.ts | 17 |
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 |