diff options
author | Raphael <mail@raphaelkabo.com> | 2025-04-29 22:02:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-29 22:02:12 +0100 |
commit | 69f75005303d634b9208c23068655385734f4d3a (patch) | |
tree | 9f14b63c602a2968cf2e5e0ab822f34fd520058a /src/index.d.ts | |
parent | b04e6394c5c5d882800f5215feae89d76a18af23 (diff) | |
parent | cc68811851f02f413bbd5bcf316d1697a0e83bae (diff) |
Merge pull request #202 from halkeye/fix-nodemailer
Fix ReferenceError: nodemailerTransporter is not defined
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 |