@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
11 lines (8 loc) • 299 B
text/typescript
import { of } from 'rxjs';
import { refCount } from 'rxjs/operators';
it('should infer correctly', () => {
const a = of(1, 2, 3).pipe(refCount()); // $ExpectType Observable<number>
});
it('should not accept any parameters', () => {
const a = of(1, 2, 3).pipe(refCount(1)); // $ExpectError
});