1 line
No EOL
1.5 KiB
JSON
1 line
No EOL
1.5 KiB
JSON
{"ast":null,"code":"import { observable as Symbol_observable } from '../symbol/observable';\nexport const subscribeToObservable = obj => subscriber => {\n const obs = obj[Symbol_observable]();\n if (typeof obs.subscribe !== 'function') {\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n } else {\n return obs.subscribe(subscriber);\n }\n};","map":{"version":3,"names":["observable","Symbol_observable","subscribeToObservable","obj","subscriber","obs","subscribe","TypeError"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/util/subscribeToObservable.js"],"sourcesContent":["import { observable as Symbol_observable } from '../symbol/observable';\nexport const subscribeToObservable = (obj) => (subscriber) => {\n const obs = obj[Symbol_observable]();\n if (typeof obs.subscribe !== 'function') {\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n }\n else {\n return obs.subscribe(subscriber);\n }\n};\n"],"mappings":"AAAA,SAASA,UAAU,IAAIC,iBAAiB,QAAQ,sBAAsB;AACtE,OAAO,MAAMC,qBAAqB,GAAIC,GAAG,IAAMC,UAAU,IAAK;EAC1D,MAAMC,GAAG,GAAGF,GAAG,CAACF,iBAAiB,CAAC,CAAC,CAAC;EACpC,IAAI,OAAOI,GAAG,CAACC,SAAS,KAAK,UAAU,EAAE;IACrC,MAAM,IAAIC,SAAS,CAAC,gEAAgE,CAAC;EACzF,CAAC,MACI;IACD,OAAOF,GAAG,CAACC,SAAS,CAACF,UAAU,CAAC;EACpC;AACJ,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |