mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
14 lines
363 B
TypeScript
14 lines
363 B
TypeScript
import { NextApiRequest } from 'next';
|
|
import { Auth } from './auth';
|
|
|
|
export interface NextApiRequestQueryBody<TQuery = any, TBody = any> extends NextApiRequest {
|
|
auth?: Auth;
|
|
query: TQuery & { [key: string]: string | string[] };
|
|
body: TBody;
|
|
headers: any;
|
|
}
|
|
|
|
export interface NextApiRequestAuth extends NextApiRequest {
|
|
auth?: Auth;
|
|
headers: any;
|
|
}
|