jest automatic tests

This commit is contained in:
Flam3rboy
2021-09-18 01:50:29 +02:00
parent 578cc8b4b6
commit d61013cebf
6 changed files with 129 additions and 7 deletions

View File

@@ -28,12 +28,11 @@ declare global {
}
}
export type RouteSchema = string; // typescript interface name
export type RouteResponse = { status?: number; body?: RouteSchema; headers?: Record<string, string> };
export type RouteResponse = { status?: number; body?: `${string}Response`; headers?: Record<string, string> };
export interface RouteOptions {
permission?: PermissionResolvable;
body?: RouteSchema;
body?: `${string}Schema`; // typescript interface name
response?: RouteResponse;
example?: {
body?: any;