source: trip-planner-front/node_modules/rxjs/_esm5/internal/util/subscribeToObservable.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 556 bytes
Line 
1/** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */
2import { observable as Symbol_observable } from '../symbol/observable';
3export var subscribeToObservable = function (obj) {
4 return function (subscriber) {
5 var obs = obj[Symbol_observable]();
6 if (typeof obs.subscribe !== 'function') {
7 throw new TypeError('Provided object does not correctly implement Symbol.observable');
8 }
9 else {
10 return obs.subscribe(subscriber);
11 }
12 };
13};
14//# sourceMappingURL=subscribeToObservable.js.map
Note: See TracBrowser for help on using the repository browser.