@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
11 lines (8 loc) • 313 B
text/typescript
import { of } from 'rxjs';
import { materialize } from 'rxjs/operators';
it('should infer correctly', () => {
const o = of('foo').pipe(materialize()); // $ExpectType Observable<Notification<string>>
});
it('should enforce types', () => {
const o = of('foo').pipe(materialize(() => {})); // $ExpectError
});