mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Initial Typescript models.
This commit is contained in:
parent
04e9f06e93
commit
0aaba8cbd1
74 changed files with 1144 additions and 768 deletions
14
interface/api/nextApi.d.ts
vendored
Normal file
14
interface/api/nextApi.d.ts
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue