daphnis/global.d.ts

10 lines
371 B
TypeScript
Raw Permalink Normal View History

// global.d.ts
import { PrismaClient as DaphnisClient } from "@/prisma/schemas/daphnis/generated/daphnis";
import { PrismaClient as ArtemisClient } from "@/prisma/schemas/artemis/generated/artemis";
// adding types to global so primsa.ts doesnt freak out
declare global {
var daphnisClient: DaphnisClient | undefined;
var artemisClient: ArtemisClient | undefined;
}