This commit is contained in:
tamaina 2023-05-21 15:01:06 +00:00
parent 359f0b21b0
commit 919af7b967
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export class APIClient {
} }
public request<E extends keyof Endpoints, P extends SchemaOrUndefined<D['defines'][number]['req']>, M extends IEndpointMeta = Endpoints[E], R = ResponseOf<M, P>>( public request<E extends keyof Endpoints, P extends SchemaOrUndefined<D['defines'][number]['req']>, M extends IEndpointMeta = Endpoints[E], R = ResponseOf<M, P>>(
endpoint: E, params?: P, credential?: string | null | undefined, endpoint: E, params: P, credential?: string | null | undefined,
): Promise<R> ): Promise<R>
{ {
const promise = new Promise((resolve, reject) => { const promise = new Promise((resolve, reject) => {