refactor: rename variables to context.ts
This commit is contained in:
@@ -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;
|
||||
}>;
|
||||
@@ -1,8 +0,0 @@
|
||||
type CacheVariables = {
|
||||
CACHE_CONFIG: {
|
||||
key: string;
|
||||
duration: number;
|
||||
};
|
||||
};
|
||||
|
||||
export type AniwatchAPIVariables = CacheVariables & {};
|
||||
Reference in New Issue
Block a user