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