Add prisma to requestcontext type
This commit is contained in:
8
index.d.ts
vendored
8
index.d.ts
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
import { type PrismaClient } from "./generated/prisma/client.js";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
module "*.css";
|
module "*.css";
|
||||||
|
|
||||||
@@ -17,7 +19,11 @@ declare global {
|
|||||||
token: string;
|
token: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
type RequestContext = EventContext<Env, string, { [k: string]: any }>;
|
type RequestContext = EventContext<
|
||||||
|
Env,
|
||||||
|
string,
|
||||||
|
{ prisma: PrismaClient; [k: string]: any }
|
||||||
|
>;
|
||||||
|
|
||||||
interface AppealCardProps {
|
interface AppealCardProps {
|
||||||
approved: number | null;
|
approved: number | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user