mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-06 01:55:56 +00:00
✨ jest automatic tests
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user