Reactive-Extensions / RxJS

The Reactive Extensions for JavaScript
http://reactivex.io
Other
19.49k stars 2.1k forks source link

using Rx.Observable.from in angular-cli meet this problem #1474

Closed xiehongyang closed 7 years ago

xiehongyang commented 7 years ago

when i just write this: var s = new Set(['foo', window]); Rx.Observable.from(s).subscribe( function (x) { console.log('Next: ' + x); }, function (err) { console.log('Error: ' + err); }, function () { console.log('Completed'); }); and complier tell me this : ERROR in D:/my_project/rxjs/src/app/app.component.ts (17,24): Argument of type 'Set<string | Window>' is not assignable to parameter of type 'ArrayLike<{}>'. Property 'length' is missing in type 'Set<string | Window>'. is there anything i should set but miss? thank u