fix indent
This commit is contained in:
parent
e7b171d648
commit
c578015b63
|
@ -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('');
|
||||||
|
|
|
@ -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' {
|
||||||
|
|
Loading…
Reference in New Issue