Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Co-authored-by: Keith Williams <keithwillcode@gmail.com> Co-authored-by: Syed Ali Shahbaz <syedshahbaz@Syeds-MacBook-Pro.local> Co-authored-by: zomars <zomars@me.com>
19 lines
537 B
TypeScript
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 };
|
|
}
|
|
}
|