So of course I googled a lot. For example this:
Property 'of' does not exist on type 'typeof Observable
But what I try, it doesn't fix it.
So I have this:
import { Observable,} from "rxjs";
import { of } from 'rxjs/observable/of';
export class TranslateServiceStub{
public get(key: any): any {
Observable.of(key);
}
}
But it keeps saying this:
Property 'of' does not exist on type 'typeof Observable'.ts(2339)
So what do I have to do to fix this?
Thank you