You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RxJS version: 6.5.1 (seems to be in 6.5.0 as well)
Possible Solution
After investigating a bit, I believe this line in the implementation of endWith isn't quite right:
// current implemention:exportfunctionendWith<T>(...array: Array<T|SchedulerLike>): MonoTypeOperatorFunction<T>{return(source: Observable<T>)=>concat(source, ...(arrayasany[]))asObservable<T>;}// Maybe something like this (I wouldn't be surprised if that allows the removal of the type assertion):exportfunctionendWith<T>(...array: Array<T|SchedulerLike>): MonoTypeOperatorFunction<T>{return(source: Observable<T>)=>concat(source,of(...array))asObservable<T>;}
The text was updated successfully, but these errors were encountered:
Bug Report
Current Behavior
endWith
throwsTypeError
.Reproduction
https://jsfiddle.net/1Lz8m4bx/1/
Expected behavior
Should not throw :)
Environment
Possible Solution
After investigating a bit, I believe this line in the implementation of
endWith
isn't quite right:The text was updated successfully, but these errors were encountered: