summaryrefslogtreecommitdiff
path: root/src/index.d.ts
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-02-26 12:09:46 +0000
committerRaphael Kabo <raphaelkabo@hey.com>2024-02-26 12:09:46 +0000
commitc93fd6e2d455ea4208f9e5ca6bfbd1c0e9fd1ad9 (patch)
tree8baed2c232b629a98b21006adf440f6f83d5da57 /src/index.d.ts
parent363cfbae076f4494ddd5fddcf03de622f6247051 (diff)
refactor: allow Cypress to override config
Diffstat (limited to 'src/index.d.ts')
-rw-r--r--src/index.d.ts14
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;
+ };
+ }
+}