import { NextApiRequest } from 'next'; import { Auth } from './auth'; export interface NextApiRequestQueryBody extends NextApiRequest { auth?: Auth; query: TQuery & { [key: string]: string | string[] }; body: TBody; headers: any; } export interface NextApiRequestAuth extends NextApiRequest { auth?: Auth; headers: any; }