UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

12 lines (9 loc) 403 B
import { of } from 'rxjs'; import { skipUntil } from 'rxjs/operators'; it('should infer correctly', () => { const o = of('foo', 'bar', 'baz').pipe(skipUntil(of(4, 'RxJS', 7))); // $ExpectType Observable<string> }); it('should enforce types', () => { const o = of('foo', 'bar', 'baz').pipe(skipUntil()); // $ExpectError const p = of('foo', 'bar', 'baz').pipe(skipUntil('7')); // $ExpectError });