import { Observable } from '../Observable'; import { BehaviorSubject } from '../BehaviorSubject'; import { multicast } from './multicast'; import { ConnectableObservable } from '../observable/ConnectableObservable'; /** * @param value * @return {ConnectableObservable} * @method publishBehavior * @owner Observable */ export function publishBehavior(this: Observable, value: T): ConnectableObservable { return multicast.call(this, new BehaviorSubject(value)); }