import { of } from 'rxjs'; import { materialize } from 'rxjs/operators'; it('should infer correctly', () => { const o = of('foo').pipe(materialize()); // $ExpectType Observable> }); it('should enforce types', () => { const o = of('foo').pipe(materialize(() => {})); // $ExpectError });