publishBehavior.js.map 1001 B

1
  1. {"version":3,"file":"publishBehavior.js","sourceRoot":"","sources":["../../src/operators/publishBehavior.ts"],"names":[],"mappings":";AACA,gCAAgC,oBAAoB,CAAC,CAAA;AACrD,0BAA0B,aAAa,CAAC,CAAA;AAIxC;;;;;GAKG;AACH,yBAAmC,KAAQ;IACzC,MAAM,CAAC,UAAC,MAAqB,IAAK,OAAA,qBAAS,CAAC,IAAI,iCAAe,CAAI,KAAK,CAAC,CAAC,CAAC,MAAM,CAA6B,EAA5E,CAA4E,CAAC;AACjH,CAAC;AAFe,uBAAe,kBAE9B,CAAA","sourcesContent":["import { Observable } from '../Observable';\nimport { BehaviorSubject } from '../BehaviorSubject';\nimport { multicast } from './multicast';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nimport { UnaryFunction } from '../interfaces';\n\n/**\n * @param value\n * @return {ConnectableObservable<T>}\n * @method publishBehavior\n * @owner Observable\n */\nexport function publishBehavior<T>(value: T): UnaryFunction<Observable<T>, ConnectableObservable<T>> {\n return (source: Observable<T>) => multicast(new BehaviorSubject<T>(value))(source) as ConnectableObservable<T>;\n}\n"]}