Compare commits

...

1 Commits

Author SHA1 Message Date
Agusti Fernandez Pardo 5ec30c8fc4 fix: update types for next api request 2022-05-21 00:02:22 +02:00
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;
}
}