import { Observable, of } from 'rxjs';
let myobs:Observable<string[]> = () => {
return of("test", "test2", "test3");
};
This is code I wrote with some limited understanding of rxjs. I am trying to conceptualize what is going on, so I tried to create an Observable of type Array<string>
that will simply return the stream of strings specified in the return statement.
I am receiving an error that says I am missing _isScalar, source, operator, lift, and 6 more... what would be the correct syntax, and more importantly: what am I missing to fill in my gap of knowledge that will let my "demo" work?