Fix errors in type definitions (#1263)
This commit is contained in:
committed by
GitHub
parent
e6a4050b0b
commit
58117792de
@ -14,6 +14,7 @@ import {
|
||||
TransportRequestParams,
|
||||
TransportRequestOptions,
|
||||
TransportRequestCallback,
|
||||
TransportRequestPromise,
|
||||
RequestEvent,
|
||||
ApiError,
|
||||
RequestBody,
|
||||
@ -152,7 +153,7 @@ transport.request({
|
||||
})
|
||||
|
||||
const promise = transport.request(params, options)
|
||||
expectType<Promise<ApiResponse>>(promise)
|
||||
expectType<TransportRequestPromise<ApiResponse>>(promise)
|
||||
promise.then(result => expectType<ApiResponse>(result))
|
||||
expectType<ApiResponse>(await promise)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user