summary refs log tree commit diff
path: root/api/src/util
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-18 01:50:29 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-18 01:50:29 +0200
commitd61013cebf9eb8a73318ea0bfcae6f643cd90a7b (patch)
tree4affc73533786a9439fe6c1fdae462dae3101414 /api/src/util
parent:art: use typescript plugin that converts to relative paths (diff)
downloadserver-d61013cebf9eb8a73318ea0bfcae6f643cd90a7b.tar.xz
:sparkles: jest automatic tests
Diffstat (limited to 'api/src/util')
-rw-r--r--api/src/util/route.ts5
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;