Interface RequestHandle<T>
interface RequestHandle<T> { abort: (() => void); catch: (<R>(onrejected?) => Promise<T | R>); finally: ((onfinally?) => Promise<T>); then: (<R1, R2>(onfulfilled?,
onrejected?) => Promise<R1 | R2>); } Properties
catch
catch: (<R>(onrejected?) => Promise<T | R>) Type declaration
- <R>(onrejected?): Promise<T | R>
Parameters
Optional onrejected: null | ((reason) => R | PromiseLike<R>)
Returns Promise<T | R>
finally
finally: ((onfinally?) => Promise<T>) Type declaration
- (onfinally?): Promise<T>
Parameters
Optional onfinally: null | (() => void)
Returns Promise<T>
then
then: (<R1, R2>(onfulfilled?,
onrejected?) => Promise<R1 | R2>) Type declaration
- <R1, R2>(onfulfilled?, onrejected?): Promise<R1 | R2>
Parameters
Optional onfulfilled: null | ((value) => R1 | PromiseLike<R1>)Optional onrejected: null | ((reason) => R2 | PromiseLike<R2>)
Returns Promise<R1 | R2>