-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
27 lines (23 loc) · 693 Bytes
/
types.d.ts
File metadata and controls
27 lines (23 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
declare type APIResponse = Record<string, unknown>;
declare interface Endpoint {
route: string | string[];
default(req: Express.Request, res: Express.Response): unknown;
}
declare interface Middleware {
default(req: Express.Request, res: Express.Response, next: import("express").NextFunction): void | Promise<void>;
}
declare interface Runtime {
default(app: Express.Application): void | Promise<void>;
}
declare interface Store {
id: string;
name: string;
owner: string;
ownerId: string;
verified: boolean;
memberCount: number | string;
memberOnline: number | string;
bannerURL: string | null;
iconURL: string | null;
inviteCodes: string[];
}