diff options
Diffstat (limited to 'src/index.d.ts')
-rw-r--r-- | src/index.d.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/index.d.ts b/src/index.d.ts new file mode 100644 index 0000000..292e5d3 --- /dev/null +++ b/src/index.d.ts @@ -0,0 +1,14 @@ +import "express"; +import { GathioConfig } from "./lib/config.js"; + +interface Locals { + config: GathioConfig; +} + +declare module "express" { + export interface Response { + locals: { + config?: GathioConfig; + }; + } +} |