import { of } from 'rxjs'; import { repeat } from 'rxjs/operators'; it('should infer correctly', () => { const o = of('a', 'b', 'c').pipe(repeat()); // $ExpectType Observable }); it('should accept a count parameter', () => { const o = of('a', 'b', 'c').pipe(repeat(47)); // $ExpectType Observable }); it('should enforce types', () => { const o = of('a', 'b', 'c').pipe(repeat('aa')); // $ExpectError });