Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / internal / util / subscribeToObservable.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/internal/util/subscribeToObservable.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/internal/util/subscribeToObservable.js
new file mode 100644 (file)
index 0000000..9fd034f
--- /dev/null
@@ -0,0 +1,13 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var observable_1 = require("../symbol/observable");
+exports.subscribeToObservable = function (obj) { return function (subscriber) {
+    var obs = obj[observable_1.observable]();
+    if (typeof obs.subscribe !== 'function') {
+        throw new TypeError('Provided object does not correctly implement Symbol.observable');
+    }
+    else {
+        return obs.subscribe(subscriber);
+    }
+}; };
+//# sourceMappingURL=subscribeToObservable.js.map
\ No newline at end of file