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 & {};