fix: update types for next api request
parent
6973d26153
commit
5ec30c8fc4
|
@ -6,5 +6,9 @@ import "./next-auth";
|
|||
export declare module "next" {
|
||||
interface NextApiRequest extends IncomingMessage {
|
||||
session?: Session | null;
|
||||
userId: number;
|
||||
method: string;
|
||||
query: { [key: string]: string | string[] };
|
||||
body: any;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue