Add web front-end and fix API issues
This commit is contained in:
1 parent
45ca4de0ad
commit
a7524412f0
2571 files changed
+86998
-5
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
import { Subject } from '../Subject';
|
||||
import { innerFrom } from '../observable/innerFrom';
|
||||
import { operate } from '../util/lift';
|
||||
import { fromSubscribable } from '../observable/fromSubscribable';
|
||||
var DEFAULT_CONFIG = {
|
||||
connector: function () { return new Subject(); },
|
||||
};
|
||||
export function connect(selector, config) {
|
||||
if (config === void 0) { config = DEFAULT_CONFIG; }
|
||||
var connector = config.connector;
|
||||
return operate(function (source, subscriber) {
|
||||
var subject = connector();
|
||||
innerFrom(selector(fromSubscribable(subject))).subscribe(subscriber);
|
||||
subscriber.add(source.subscribe(subject));
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=connect.js.map
|
||||
Reference in new issue
Block a user