import { NextApiRequest } from 'next'; import { Auth } from './auth'; export interface NextApiRequestQueryBody extends NextApiRequest { auth: Auth; query: TQuery; body: TBody; } export interface NextApiRequestQuery extends NextApiRequest { auth: Auth; query: TQuery; } export interface NextApiRequestBody extends NextApiRequest { auth: Auth; body: TBody; } export interface ObjectAny { [key: string]: any; }