1 files changed, 2 insertions, 3 deletions
diff --git a/api/src/util/route.ts b/api/src/util/route.ts
index 678ca64c..35ea43ba 100644
--- a/api/src/util/route.ts
+++ b/api/src/util/route.ts
@@ -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;
|