mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
23 lines
458 B
TypeScript
23 lines
458 B
TypeScript
|
import { NextApiRequest } from 'next';
|
||
|
import { Auth } from './auth';
|
||
|
|
||
|
export interface NextApiRequestQueryBody<TQuery, TBody> extends NextApiRequest {
|
||
|
auth: Auth;
|
||
|
query: TQuery;
|
||
|
body: TBody;
|
||
|
}
|
||
|
|
||
|
export interface NextApiRequestQuery<TQuery> extends NextApiRequest {
|
||
|
auth: Auth;
|
||
|
query: TQuery;
|
||
|
}
|
||
|
|
||
|
export interface NextApiRequestBody<TBody> extends NextApiRequest {
|
||
|
auth: Auth;
|
||
|
body: TBody;
|
||
|
}
|
||
|
|
||
|
export interface ObjectAny {
|
||
|
[key: string]: any;
|
||
|
}
|