import { of } from 'rxjs';
import { materialize } from 'rxjs/operators';

it('should infer correctly', () => {
  const o = of('foo').pipe(materialize()); // $ExpectType Observable<Notification<string> & ObservableNotification<string>>
});

it('should enforce types', () => {
  const o = of('foo').pipe(materialize(() => {})); // $ExpectError
});
