Skip to content

类型: IOPromise<TResponse>

Type parameters

Name
TResponse

属性

catch

catch: <ResultType>(onRejected?: (reason: IOError) => ResultType | PromiseLike<ResultType>) => IOPromise<TResponse>

Type declaration

▸ <ResultType>(onRejected?): IOPromise<TResponse>

Type parameters
NameType
ResultTypenever
参数
NameType
onRejected?(reason: IOError) => ResultType | PromiseLike<ResultType>
返回值

IOPromise<TResponse>

packages/uni-mp/io/types/base.d.ts:122


finally

finally: () => void

Type declaration

▸ (): void

返回值

void

packages/uni-mp/io/types/base.d.ts:126


then

then: <ResultType>(onFulfilled?: (response: TResponse) => ResultType | PromiseLike<ResultType>) => IOPromise<TResponse>

Type declaration

▸ <ResultType>(onFulfilled?): IOPromise<TResponse>

Type parameters
NameType
ResultTypenever
参数
NameType
onFulfilled?(response: TResponse) => ResultType | PromiseLike<ResultType>
返回值

IOPromise<TResponse>

packages/uni-mp/io/types/base.d.ts:118