hunk.code_window: import { Subject } from '../Subject';
   import { multicast } from './multicast';
   import { ConnectableObservable } from '../observable/ConnectableObservable';
   import { MonoTypeOperatorFunction, OperatorFunction, UnaryFunction } from '../types';
   /* tslint:disable:max-line-length */
   export function publish<T>(): UnaryFunction<Observable<T>, ConnectableObservable<T>>;
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit: import { MonoTypeOperatorFunction, OperatorFunction, UnaryFunction, ObservableInput, ObservedValueOf } from '../types';
  
hunk.file_path: src/internal/operators/publish.ts
hunk.type: replace
file: export function isDate(value: any): value is Date {
    return value instanceof Date && !isNaN(+value);
  }
  