From 1dd935dc0ca8d140deae5a34effadfae8af83758 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Thu, 27 Oct 2022 19:50:00 +0200 Subject: [PATCH] fix endpoint type definition for errors --- packages/backend/src/server/api/endpoints.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/backend/src/server/api/endpoints.ts b/packages/backend/src/server/api/endpoints.ts index ff35d848d..1268f2670 100644 --- a/packages/backend/src/server/api/endpoints.ts +++ b/packages/backend/src/server/api/endpoints.ts @@ -1,4 +1,5 @@ import { Schema } from '@/misc/schema.js'; +import { errors } from './error.js'; import * as ep___admin_meta from './endpoints/admin/meta.js'; import * as ep___admin_abuseUserReports from './endpoints/admin/abuse-user-reports.js'; @@ -621,13 +622,7 @@ export interface IEndpointMeta { readonly tags?: ReadonlyArray; - readonly errors?: { - readonly [key: string]: { - readonly message: string; - readonly code: string; - readonly id: string; - }; - }; + readonly errors?: Array; readonly res?: Schema;