fix: update types for next api request

fix/api-hooks
Agusti Fernandez Pardo 2022-05-21 00:02:22 +02:00
parent 6973d26153
commit 5ec30c8fc4
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}
}