diff --git a/packages/misskey-js/generator/src/generator.ts b/packages/misskey-js/generator/src/generator.ts index 93a731ad34..03d17a6c45 100644 --- a/packages/misskey-js/generator/src/generator.ts +++ b/packages/misskey-js/generator/src/generator.ts @@ -286,9 +286,9 @@ async function generateApiClientJSDoc( endpointOutputLine.push( 'interface IErrPromise {', - ' then(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike) | undefined | null): Promise;', + ' then(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike) | undefined | null): Promise;', '', - ' catch(onrejected?: ((reason: TError) => TResult | PromiseLike) | undefined | null): Promise;', + ' catch(onrejected?: ((reason: TError) => TResult | PromiseLike) | undefined | null): Promise;', '}', ); endpointOutputLine.push(''); diff --git a/packages/misskey-js/src/autogen/apiClientJSDoc.ts b/packages/misskey-js/src/autogen/apiClientJSDoc.ts index 6b4f5c569e..a6bc2383d3 100644 --- a/packages/misskey-js/src/autogen/apiClientJSDoc.ts +++ b/packages/misskey-js/src/autogen/apiClientJSDoc.ts @@ -2,9 +2,9 @@ import type { SwitchCaseResponseType } from '../api.js'; import type { Endpoints } from './endpoint.js'; interface IErrPromise { - then(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike) | undefined | null): Promise; + then(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike) | undefined | null): Promise; - catch(onrejected?: ((reason: TError) => TResult | PromiseLike) | undefined | null): Promise; + catch(onrejected?: ((reason: TError) => TResult | PromiseLike) | undefined | null): Promise; } declare module '../api.js' {