2023-05-19 17:38:19 +00:00
|
|
|
import type { Session } from "next-auth";
|
|
|
|
import type { NextApiRequest as BaseNextApiRequest } from "next/types";
|
|
|
|
|
2023-09-19 21:02:57 +00:00
|
|
|
import type { PrismaClient } from "@calcom/prisma";
|
2023-05-19 17:38:19 +00:00
|
|
|
|
|
|
|
export type * from "next/types";
|
|
|
|
|
|
|
|
export declare module "next" {
|
|
|
|
interface NextApiRequest extends BaseNextApiRequest {
|
|
|
|
session?: Session | null;
|
|
|
|
|
|
|
|
userId: number;
|
|
|
|
method: string;
|
|
|
|
prisma: PrismaClient;
|
|
|
|
// session: { user: { id: number } };
|
|
|
|
// query: Partial<{ [key: string]: string | string[] }>;
|
|
|
|
isAdmin: boolean;
|
|
|
|
isCustomPrisma: boolean;
|
|
|
|
pagination: { take: number; skip: number };
|
|
|
|
}
|
|
|
|
}
|