code-share/server/api/trpc/context.ts

8 lines
186 B
TypeScript

import { Request } from "express";
export const createContext = async ({ req }: { req: Request }) => {
return {};
};
export type Context = Awaited<ReturnType<typeof createContext>>;