import type { TRPCContext } from "../trpc.js"; export type HolidayReadContext = Pick; export type HolidayCalendarDb = TRPCContext["db"] & { holidayCalendar: { findFirst: (args: unknown) => Promise<{ id: string } | null>; findMany: (args: unknown) => Promise; findUnique: (args: unknown) => Promise; create: (args: unknown) => Promise; update: (args: unknown) => Promise; delete: (args: unknown) => Promise; }; holidayCalendarEntry: { findFirst: (args: unknown) => Promise<{ id: string } | null>; findUnique: (args: unknown) => Promise; create: (args: unknown) => Promise; update: (args: unknown) => Promise; delete: (args: unknown) => Promise; }; }; export function asHolidayCalendarDb(db: TRPCContext["db"]): HolidayCalendarDb { return db as unknown as HolidayCalendarDb; }