From 38fb25695771b49f01dca143c300c4d927c59694 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sun, 23 Jun 2024 02:18:42 +0900 Subject: [PATCH] fix --- packages/misskey-js/generator/src/generator.ts | 5 ++++- packages/misskey-js/src/autogen/endpoint.ts | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/misskey-js/generator/src/generator.ts b/packages/misskey-js/generator/src/generator.ts index 4f2b5b771e..a2d87f660d 100644 --- a/packages/misskey-js/generator/src/generator.ts +++ b/packages/misskey-js/generator/src/generator.ts @@ -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(''); diff --git a/packages/misskey-js/src/autogen/endpoint.ts b/packages/misskey-js/src/autogen/endpoint.ts index 957d1fb262..bedd93afc7 100644 --- a/packages/misskey-js/src/autogen/endpoint.ts +++ b/packages/misskey-js/src/autogen/endpoint.ts @@ -1,6 +1,9 @@ +/* eslint @typescript-eslint/no-unused-vars: 0 */ + import type { EmptyRequest, EmptyResponse, + EmptyErrors, AdminMetaResponse, AdminMetaErrors, AdminAbuseUserReportsRequest,