From db022185efd04d4382883de543d3f3399cd28a6b Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Sat, 7 Dec 2024 21:11:44 +0530 Subject: feat(server): add aniwatch variables types for type-safe req context variable access --- src/config/variables.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/config/variables.ts (limited to 'src') 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; -- cgit v1.2.3