2
0
Files
cal/calcom/apps/api/v1/next.d.ts
2024-08-09 00:39:27 +02:00

19 lines
537 B
TypeScript

import type { Session } from "next-auth";
import type { NextApiRequest as BaseNextApiRequest } from "next/types";
export type * from "next/types";
export declare module "next" {
interface NextApiRequest extends BaseNextApiRequest {
session?: Session | null;
userId: number;
method: string;
// session: { user: { id: number } };
// query: Partial<{ [key: string]: string | string[] }>;
isSystemWideAdmin: boolean;
isOrganizationOwnerOrAdmin: boolean;
pagination: { take: number; skip: number };
}
}