fix indent

This commit is contained in:
kakkokari-gtyih 2024-06-23 00:45:03 +09:00
parent e7b171d648
commit c578015b63
2 changed files with 4 additions and 4 deletions

View File

@ -286,9 +286,9 @@ async function generateApiClientJSDoc(
endpointOutputLine.push( endpointOutputLine.push(
'interface IErrPromise<TSuccess, TError = unknown> {', 'interface IErrPromise<TSuccess, TError = unknown> {',
' then<TResult1 = TSuccess, TResult2 = never>(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;', ' then<TResult1 = TSuccess, TResult2 = never>(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;',
'', '',
' catch<TResult = never>(onrejected?: ((reason: TError) => TResult | PromiseLike<TResult>) | undefined | null): Promise<TSuccess | TResult>;', ' catch<TResult = never>(onrejected?: ((reason: TError) => TResult | PromiseLike<TResult>) | undefined | null): Promise<TSuccess | TResult>;',
'}', '}',
); );
endpointOutputLine.push(''); endpointOutputLine.push('');

View File

@ -2,9 +2,9 @@ import type { SwitchCaseResponseType } from '../api.js';
import type { Endpoints } from './endpoint.js'; import type { Endpoints } from './endpoint.js';
interface IErrPromise<TSuccess, TError = unknown> { interface IErrPromise<TSuccess, TError = unknown> {
then<TResult1 = TSuccess, TResult2 = never>(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>; then<TResult1 = TSuccess, TResult2 = never>(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
catch<TResult = never>(onrejected?: ((reason: TError) => TResult | PromiseLike<TResult>) | undefined | null): Promise<TSuccess | TResult>; catch<TResult = never>(onrejected?: ((reason: TError) => TResult | PromiseLike<TResult>) | undefined | null): Promise<TSuccess | TResult>;
} }
declare module '../api.js' { declare module '../api.js' {