refactor: rename variables to context.ts

This commit is contained in:
Ritesh Ghosh
2025-05-25 22:49:30 +05:30
parent 536b97e549
commit 83035e46ce
2 changed files with 12 additions and 8 deletions
+12
View File
@@ -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;
}>;
-8
View File
@@ -1,8 +0,0 @@
type CacheVariables = {
CACHE_CONFIG: {
key: string;
duration: number;
};
};
export type AniwatchAPIVariables = CacheVariables & {};