deadhead-space-freight-tycoon/apps/server/src/routes/context.ts

13 lines
303 B
TypeScript

import type { Auth } from "../auth";
import type { Clock } from "../clock";
import type { Db } from "../db/client";
import type { RouteOptions } from "../http/route";
/** What every route module needs. */
export interface AppContext {
db: Db;
auth: Auth;
clock: Clock;
options: RouteOptions;
}