@inheritdoc
(
onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null,
)
| 93 | |
| 94 | /** @inheritdoc */ |
| 95 | public catch<TResult = never>( |
| 96 | onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null, |
| 97 | ): PromiseLike<T | TResult> { |
| 98 | return this.then(val => val, onrejected); |
| 99 | } |
| 100 | |
| 101 | /** @inheritdoc */ |
| 102 | public finally<TResult>(onfinally?: (() => void) | null): PromiseLike<TResult> { |