forked from FoundKeyGang/FoundKey
fix endpoint type definition for errors
This commit is contained in:
parent
934ee82b8f
commit
1dd935dc0c
1 changed files with 2 additions and 7 deletions
|
@ -1,4 +1,5 @@
|
||||||
import { Schema } from '@/misc/schema.js';
|
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_meta from './endpoints/admin/meta.js';
|
||||||
import * as ep___admin_abuseUserReports from './endpoints/admin/abuse-user-reports.js';
|
import * as ep___admin_abuseUserReports from './endpoints/admin/abuse-user-reports.js';
|
||||||
|
@ -621,13 +622,7 @@ export interface IEndpointMeta {
|
||||||
|
|
||||||
readonly tags?: ReadonlyArray<string>;
|
readonly tags?: ReadonlyArray<string>;
|
||||||
|
|
||||||
readonly errors?: {
|
readonly errors?: Array<keyof errors>;
|
||||||
readonly [key: string]: {
|
|
||||||
readonly message: string;
|
|
||||||
readonly code: string;
|
|
||||||
readonly id: string;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
readonly res?: Schema;
|
readonly res?: Schema;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue