I need to switch a stream to an other stream, so I did
this.appState.domain$.pipe(switchMap(() => of(10))
It gives me an error
OperatorFunction<unknown, any>' is not assignable to parameter of type OperatorFunction<unknown, any>' ....
For me, the error doesn't really tell me what is happening or how to fix this. I would expect this to work, but something is off. Any suggestions why typescript is complaining?