The error "Type 'Observable<{ "aa": any; "dd": any; "cc": any; }>' is not assignable to type 'Observable'." is popping up in my Angular 4 project. How can I resolve this issue with the syntax?
Any suggestions on fixing this error would be greatly appreciated.
public search2(): Observable<string[]> {
return Observable.of(
{
"aa", "dd", "cc"
}
);
}