hunk.code_window:             next(value);
             } catch (err) {
               reject(err);
               subscription?.unsubscribe();
             }
           },
  
hunk.labels: keep keep keep replace keep keep
hunk.after_edit:             subscriber.unsubscribe();
  
hunk.file_path: src/internal/Observable.ts
hunk.type: replace
file: import { of } from 'rxjs';
  import { publishBehavior } from 'rxjs/operators';
  
  it('should enforce parameter', () => {
    const a = of(1, 2, 3).pipe(publishBehavior()); // $ExpectError
  });
  
  it('should infer correctly with parameter', () => {
    const a = of(1, 2, 3).pipe(publishBehavior(4)); // $ExpectType Observable<number>
  });
  
  it('should enforce type on parameter', () => {
    const a = of(1, 2, 3).pipe(publishBehavior('a')); // $ExpectError
  });
  