src/observable-promise.ts
Function then
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public then<TResult1 = T, TResult2 = never>(
onFulfilledRaw?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,
onRejectedRaw?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null
): Promise<TResult1 | TResult2> {
const onFulfilled: OnFulfilled<T, TResult1> = onFulfilledRaw || returnInput as any