(
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null,
)
| 89 | } |
| 90 | |
| 91 | public then<TResult1 = T, TResult2 = never>( |
| 92 | onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, |
| 93 | onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null, |
| 94 | ): Promise<TResult1 | TResult2> { |
| 95 | return this.#promise.then(onFulfilled, onRejected); |
| 96 | } |
| 97 | |
| 98 | public catch<TResult = never>( |
| 99 | onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null, |
no outgoing calls
no test coverage detected