import { of, asyncScheduler } from 'rxjs'; import { timeInterval } from 'rxjs/operators'; it('should infer correctly', () => { const o = of('a', 'b', 'c').pipe(timeInterval()); // $ExpectType Observable> }); it('should support a scheduler', () => { const o = of('a', 'b', 'c').pipe(timeInterval(asyncScheduler)); // $ExpectType Observable> }); it('should enforce scheduler type', () => { const o = of('a', 'b', 'c').pipe(timeInterval('nope')); // $ExpectError });