From 83035e46ce57f62637edb8f164b3a6fcf722f3c1 Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Sun, 25 May 2025 22:49:30 +0530 Subject: [PATCH] refactor: rename variables to context.ts --- src/config/context.ts | 12 ++++++++++++ src/config/variables.ts | 8 -------- 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 src/config/context.ts delete mode 100644 src/config/variables.ts diff --git a/src/config/context.ts b/src/config/context.ts new file mode 100644 index 0000000..4b76b63 --- /dev/null +++ b/src/config/context.ts @@ -0,0 +1,12 @@ +import type { Prettify } from "../utils.js"; + +type ServerContextVariables = Prettify<{ + CACHE_CONFIG: { + key: string; + duration: number; + }; +}>; + +export type ServerContext = Prettify<{ + Variables: ServerContextVariables; +}>; diff --git a/src/config/variables.ts b/src/config/variables.ts deleted file mode 100644 index dc90dcf..0000000 --- a/src/config/variables.ts +++ /dev/null @@ -1,8 +0,0 @@ -type CacheVariables = { - CACHE_CONFIG: { - key: string; - duration: number; - }; -}; - -export type AniwatchAPIVariables = CacheVariables & {};