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
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