This commit is contained in:
kakkokari-gtyih 2024-06-23 02:18:42 +09:00
parent ee59196663
commit 38fb256957
2 changed files with 7 additions and 1 deletions

View File

@ -227,9 +227,12 @@ async function generateEndpoints(
const endpointOutputLine: string[] = []; const endpointOutputLine: string[] = [];
endpointOutputLine.push('/* eslint @typescript-eslint/no-unused-vars: 0 */');
endpointOutputLine.push('');
endpointOutputLine.push('import type {'); endpointOutputLine.push('import type {');
endpointOutputLine.push( endpointOutputLine.push(
...[emptyRequest, emptyResponse, ...entities].map(it => '\t' + it.generateName() + ','), ...[emptyRequest, emptyResponse, emptyErrors, ...entities].map(it => '\t' + it.generateName() + ','),
); );
endpointOutputLine.push(`} from '${toImportPath(entitiesOutputPath)}';`); endpointOutputLine.push(`} from '${toImportPath(entitiesOutputPath)}';`);
endpointOutputLine.push(''); endpointOutputLine.push('');

View File

@ -1,6 +1,9 @@
/* eslint @typescript-eslint/no-unused-vars: 0 */
import type { import type {
EmptyRequest, EmptyRequest,
EmptyResponse, EmptyResponse,
EmptyErrors,
AdminMetaResponse, AdminMetaResponse,
AdminMetaErrors, AdminMetaErrors,
AdminAbuseUserReportsRequest, AdminAbuseUserReportsRequest,