fix
This commit is contained in:
parent
ee59196663
commit
38fb256957
|
@ -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('');
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue