aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2024-12-07 21:11:44 +0530
committerRitesh Ghosh <[email protected]>2024-12-07 21:11:44 +0530
commitdb022185efd04d4382883de543d3f3399cd28a6b (patch)
treebddae1b723d5d08765efc21aa2db7908a70d0ba0
parent872192bcc5fa75fd95c175158aeb31a23f34e01e (diff)
downloadaniwatch-api-db022185efd04d4382883de543d3f3399cd28a6b.tar.xz
aniwatch-api-db022185efd04d4382883de543d3f3399cd28a6b.zip
feat(server): add aniwatch variables types for type-safe req context variable access
-rw-r--r--src/config/variables.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/config/variables.ts b/src/config/variables.ts
new file mode 100644
index 0000000..b58316f
--- /dev/null
+++ b/src/config/variables.ts
@@ -0,0 +1,8 @@
+type CacheVariables = {
+ CACHE_CONFIG: {
+ key: string;
+ duration: number;
+ };
+};
+
+export type AniwatchAPIVariables = {} & CacheVariables;