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[] = [];
endpointOutputLine.push('/* eslint @typescript-eslint/no-unused-vars: 0 */');
endpointOutputLine.push('');
endpointOutputLine.push('import type {');
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('');

View File

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