Closed haf closed 7 years ago
.concatMap(
Observable
.range(0, WaitUntilRedirect)
->
concatMap(project: (value: T, index: number) => ObservableInput<I>)
(https://github.com/ReactiveX/rxjs/blob/master/src/operator/concatMap.ts#L68)
You're right. What threw me off is the error message; while I did not properly use the functions, it should not crash internally like this.
it's quite similar cases to https://github.com/ReactiveX/rxjs/issues/2144#issuecomment-261801399. Nature of javascript is dynamic and you can provide / call nearly every possible way, in most cases we can't prevent all cases in runtime check. That's reason we're providing TS definition as documented api interface - even user of javascript can refer those interfaces.
@kwonoj What's wrong with the code you linked? Your docs state I can supply an observable to concat map (third example here https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/concatmap.md#rxobservableprototypeconcatmapselector-resultselector-thisarg)
source.concatMap(Rx.Observable.of(1,2,3));
source.concatMap(Promise.resolve(42));
source.concatMap([1,2,3]);
document you referred is rxjs4, 5 has breaking changes and not compatible.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
RxJS version: 5.4.0
Code to reproduce:
Expected behavior: No crash
Actual behavior:
Additional information: