mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
22 lines
458 B
TypeScript
22 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;
|
|
}
|