13 lines
369 B
TypeScript
13 lines
369 B
TypeScript
import type { IncomingMessage } from "http";
|
|
import type { Session } from "next-auth";
|
|
|
|
import "./next-auth";
|
|
|
|
export declare module "next" {
|
|
interface NextApiRequest extends IncomingMessage {
|
|
// args is defined by /integrations/[...args] endpoint
|
|
query: Partial<{ [key: string]: string | string[] }> & { args: string[] };
|
|
session?: Session | null;
|
|
}
|
|
}
|