@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
652 lines • 3.61 MB
JSON
[
{
"__docId__": 0,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/AsyncSubject.js",
"memberof": null,
"longname": "es6/AsyncSubject.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "import { Subject } from './Subject';\nimport { Subscription } from './Subscription';\n/**\n * @class AsyncSubject<T>\n */\nexport var AsyncSubject = (function (_super) {\n __extends(AsyncSubject, _super);\n function AsyncSubject() {\n _super.apply(this, arguments);\n this.value = null;\n this.hasNext = false;\n this.hasCompleted = false;\n }\n AsyncSubject.prototype._subscribe = function (subscriber) {\n if (this.hasCompleted && this.hasNext) {\n subscriber.next(this.value);\n subscriber.complete();\n return Subscription.EMPTY;\n }\n else if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription.EMPTY;\n }\n return _super.prototype._subscribe.call(this, subscriber);\n };\n AsyncSubject.prototype.next = function (value) {\n if (!this.hasCompleted) {\n this.value = value;\n this.hasNext = true;\n }\n };\n AsyncSubject.prototype.complete = function () {\n this.hasCompleted = true;\n if (this.hasNext) {\n _super.prototype.next.call(this, this.value);\n }\n _super.prototype.complete.call(this);\n };\n return AsyncSubject;\n}(Subject));\n//# sourceMappingURL=AsyncSubject.js.map"
},
{
"__docId__": 1,
"kind": "variable",
"static": true,
"variation": null,
"name": "AsyncSubject",
"memberof": "es6/AsyncSubject.js",
"longname": "es6/AsyncSubject.js~AsyncSubject",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/AsyncSubject.js",
"importStyle": "{AsyncSubject}",
"description": "",
"lineNumber": 6,
"unknown": [
{
"tagName": "@class",
"tagValue": "AsyncSubject<T>"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 2,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/BehaviorSubject.js",
"memberof": null,
"longname": "es6/BehaviorSubject.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "import { Subject } from './Subject';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\n/**\n * @class BehaviorSubject<T>\n */\nexport var BehaviorSubject = (function (_super) {\n __extends(BehaviorSubject, _super);\n function BehaviorSubject(_value) {\n _super.call(this);\n this._value = _value;\n }\n Object.defineProperty(BehaviorSubject.prototype, \"value\", {\n get: function () {\n return this.getValue();\n },\n enumerable: true,\n configurable: true\n });\n BehaviorSubject.prototype._subscribe = function (subscriber) {\n var subscription = _super.prototype._subscribe.call(this, subscriber);\n if (subscription && !subscription.closed) {\n subscriber.next(this._value);\n }\n return subscription;\n };\n BehaviorSubject.prototype.getValue = function () {\n if (this.hasError) {\n throw this.thrownError;\n }\n else if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return this._value;\n }\n };\n BehaviorSubject.prototype.next = function (value) {\n _super.prototype.next.call(this, this._value = value);\n };\n return BehaviorSubject;\n}(Subject));\n//# sourceMappingURL=BehaviorSubject.js.map"
},
{
"__docId__": 3,
"kind": "variable",
"static": true,
"variation": null,
"name": "BehaviorSubject",
"memberof": "es6/BehaviorSubject.js",
"longname": "es6/BehaviorSubject.js~BehaviorSubject",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/BehaviorSubject.js",
"importStyle": "{BehaviorSubject}",
"description": "",
"lineNumber": 6,
"unknown": [
{
"tagName": "@class",
"tagValue": "BehaviorSubject<T>"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 4,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/InnerSubscriber.js",
"memberof": null,
"longname": "es6/InnerSubscriber.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "import { Subscriber } from './Subscriber';\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport var InnerSubscriber = (function (_super) {\n __extends(InnerSubscriber, _super);\n function InnerSubscriber(parent, outerValue, outerIndex) {\n _super.call(this);\n this.parent = parent;\n this.outerValue = outerValue;\n this.outerIndex = outerIndex;\n this.index = 0;\n }\n InnerSubscriber.prototype._next = function (value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);\n };\n InnerSubscriber.prototype._error = function (error) {\n this.parent.notifyError(error, this);\n this.unsubscribe();\n };\n InnerSubscriber.prototype._complete = function () {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n };\n return InnerSubscriber;\n}(Subscriber));\n//# sourceMappingURL=InnerSubscriber.js.map"
},
{
"__docId__": 5,
"kind": "variable",
"static": true,
"variation": null,
"name": "InnerSubscriber",
"memberof": "es6/InnerSubscriber.js",
"longname": "es6/InnerSubscriber.js~InnerSubscriber",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/InnerSubscriber.js",
"importStyle": "{InnerSubscriber}",
"description": "We need this JSDoc comment for affecting ESDoc.",
"lineNumber": 7,
"ignore": true,
"unknown": [
{
"tagName": "@extends",
"tagValue": "{Ignored}"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 6,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/Notification.js",
"memberof": null,
"longname": "es6/Notification.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "import { Observable } from './Observable';\n/**\n * Represents a push-based event or value that an {@link Observable} can emit.\n * This class is particularly useful for operators that manage notifications,\n * like {@link materialize}, {@link dematerialize}, {@link observeOn}, and\n * others. Besides wrapping the actual delivered value, it also annotates it\n * with metadata of, for instance, what type of push message it is (`next`,\n * `error`, or `complete`).\n *\n * @see {@link materialize}\n * @see {@link dematerialize}\n * @see {@link observeOn}\n *\n * @class Notification<T>\n */\nexport var Notification = (function () {\n function Notification(kind, value, error) {\n this.kind = kind;\n this.value = value;\n this.error = error;\n this.hasValue = kind === 'N';\n }\n /**\n * Delivers to the given `observer` the value wrapped by this Notification.\n * @param {Observer} observer\n * @return\n */\n Notification.prototype.observe = function (observer) {\n switch (this.kind) {\n case 'N':\n return observer.next && observer.next(this.value);\n case 'E':\n return observer.error && observer.error(this.error);\n case 'C':\n return observer.complete && observer.complete();\n }\n };\n /**\n * Given some {@link Observer} callbacks, deliver the value represented by the\n * current Notification to the correctly corresponding callback.\n * @param {function(value: T): void} next An Observer `next` callback.\n * @param {function(err: any): void} [error] An Observer `error` callback.\n * @param {function(): void} [complete] An Observer `complete` callback.\n * @return {any}\n */\n Notification.prototype.do = function (next, error, complete) {\n var kind = this.kind;\n switch (kind) {\n case 'N':\n return next && next(this.value);\n case 'E':\n return error && error(this.error);\n case 'C':\n return complete && complete();\n }\n };\n /**\n * Takes an Observer or its individual callback functions, and calls `observe`\n * or `do` methods accordingly.\n * @param {Observer|function(value: T): void} nextOrObserver An Observer or\n * the `next` callback.\n * @param {function(err: any): void} [error] An Observer `error` callback.\n * @param {function(): void} [complete] An Observer `complete` callback.\n * @return {any}\n */\n Notification.prototype.accept = function (nextOrObserver, error, complete) {\n if (nextOrObserver && typeof nextOrObserver.next === 'function') {\n return this.observe(nextOrObserver);\n }\n else {\n return this.do(nextOrObserver, error, complete);\n }\n };\n /**\n * Returns a simple Observable that just delivers the notification represented\n * by this Notification instance.\n * @return {any}\n */\n Notification.prototype.toObservable = function () {\n var kind = this.kind;\n switch (kind) {\n case 'N':\n return Observable.of(this.value);\n case 'E':\n return Observable.throw(this.error);\n case 'C':\n return Observable.empty();\n }\n throw new Error('unexpected notification kind value');\n };\n /**\n * A shortcut to create a Notification instance of the type `next` from a\n * given value.\n * @param {T} value The `next` value.\n * @return {Notification<T>} The \"next\" Notification representing the\n * argument.\n */\n Notification.createNext = function (value) {\n if (typeof value !== 'undefined') {\n return new Notification('N', value);\n }\n return this.undefinedValueNotification;\n };\n /**\n * A shortcut to create a Notification instance of the type `error` from a\n * given error.\n * @param {any} [err] The `error` error.\n * @return {Notification<T>} The \"error\" Notification representing the\n * argument.\n */\n Notification.createError = function (err) {\n return new Notification('E', undefined, err);\n };\n /**\n * A shortcut to create a Notification instance of the type `complete`.\n * @return {Notification<any>} The valueless \"complete\" Notification.\n */\n Notification.createComplete = function () {\n return this.completeNotification;\n };\n Notification.completeNotification = new Notification('C');\n Notification.undefinedValueNotification = new Notification('N', undefined);\n return Notification;\n}());\n//# sourceMappingURL=Notification.js.map"
},
{
"__docId__": 7,
"kind": "variable",
"static": true,
"variation": null,
"name": "Notification",
"memberof": "es6/Notification.js",
"longname": "es6/Notification.js~Notification",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/Notification.js",
"importStyle": "{Notification}",
"description": "Represents a push-based event or value that an {@link Observable} can emit.\nThis class is particularly useful for operators that manage notifications,\nlike {@link materialize}, {@link dematerialize}, {@link observeOn}, and\nothers. Besides wrapping the actual delivered value, it also annotates it\nwith metadata of, for instance, what type of push message it is (`next`,\n`error`, or `complete`).",
"see": [
"{@link materialize}",
"{@link dematerialize}",
"{@link observeOn}"
],
"lineNumber": 16,
"unknown": [
{
"tagName": "@class",
"tagValue": "Notification<T>"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 8,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/Observable.js",
"memberof": null,
"longname": "es6/Observable.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "import { root } from './util/root';\nimport { toSubscriber } from './util/toSubscriber';\nimport { $$observable } from './symbol/observable';\n/**\n * A representation of any set of values over any amount of time. This the most basic building block\n * of RxJS.\n *\n * @class Observable<T>\n */\nexport var Observable = (function () {\n /**\n * @constructor\n * @param {Function} subscribe the function that is called when the Observable is\n * initially subscribed to. This function is given a Subscriber, to which new values\n * can be `next`ed, or an `error` method can be called to raise an error, or\n * `complete` can be called to notify of a successful completion.\n */\n function Observable(subscribe) {\n this._isScalar = false;\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n /**\n * Creates a new Observable, with this Observable as the source, and the passed\n * operator defined as the new observable's operator.\n * @method lift\n * @param {Operator} operator the operator defining the operation to take on the observable\n * @return {Observable} a new observable with the Operator applied\n */\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var operator = this.operator;\n var sink = toSubscriber(observerOrNext, error, complete);\n if (operator) {\n operator.call(sink, this);\n }\n else {\n sink.add(this._subscribe(sink));\n }\n if (sink.syncErrorThrowable) {\n sink.syncErrorThrowable = false;\n if (sink.syncErrorThrown) {\n throw sink.syncErrorValue;\n }\n }\n return sink;\n };\n /**\n * @method forEach\n * @param {Function} next a handler for each value emitted by the observable\n * @param {PromiseConstructor} [PromiseCtor] a constructor function used to instantiate the Promise\n * @return {Promise} a promise that either resolves on observable completion or\n * rejects with the handled error\n */\n Observable.prototype.forEach = function (next, PromiseCtor) {\n var _this = this;\n if (!PromiseCtor) {\n if (root.Rx && root.Rx.config && root.Rx.config.Promise) {\n PromiseCtor = root.Rx.config.Promise;\n }\n else if (root.Promise) {\n PromiseCtor = root.Promise;\n }\n }\n if (!PromiseCtor) {\n throw new Error('no Promise impl found');\n }\n return new PromiseCtor(function (resolve, reject) {\n var subscription = _this.subscribe(function (value) {\n if (subscription) {\n // if there is a subscription, then we can surmise\n // the next handling is asynchronous. Any errors thrown\n // need to be rejected explicitly and unsubscribe must be\n // called manually\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscription.unsubscribe();\n }\n }\n else {\n // if there is NO subscription, then we're getting a nexted\n // value synchronously during subscription. We can just call it.\n // If it errors, Observable's `subscribe` will ensure the\n // unsubscription logic is called, then synchronously rethrow the error.\n // After that, Promise will trap the error and send it\n // down the rejection path.\n next(value);\n }\n }, reject, resolve);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n return this.source.subscribe(subscriber);\n };\n /**\n * An interop point defined by the es7-observable spec https://github.com/zenparsing/es-observable\n * @method Symbol.observable\n * @return {Observable} this instance of the observable\n */\n Observable.prototype[$$observable] = function () {\n return this;\n };\n // HACK: Since TypeScript inherits static properties too, we have to\n // fight against TypeScript here so Subject can have a different static create signature\n /**\n * Creates a new cold Observable by calling the Observable constructor\n * @static true\n * @owner Observable\n * @method create\n * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor\n * @return {Observable} a new cold observable\n */\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\n//# sourceMappingURL=Observable.js.map"
},
{
"__docId__": 9,
"kind": "variable",
"static": true,
"variation": null,
"name": "Observable",
"memberof": "es6/Observable.js",
"longname": "es6/Observable.js~Observable",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/Observable.js",
"importStyle": "{Observable}",
"description": "A representation of any set of values over any amount of time. This the most basic building block\nof RxJS.",
"lineNumber": 10,
"unknown": [
{
"tagName": "@class",
"tagValue": "Observable<T>"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 10,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/Observer.js",
"memberof": null,
"longname": "es6/Observer.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "export var empty = {\n closed: true,\n next: function (value) { },\n error: function (err) { throw err; },\n complete: function () { }\n};\n//# sourceMappingURL=Observer.js.map"
},
{
"__docId__": 11,
"kind": "variable",
"static": true,
"variation": null,
"name": "empty",
"memberof": "es6/Observer.js",
"longname": "es6/Observer.js~empty",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/Observer.js",
"importStyle": "{empty}",
"description": null,
"lineNumber": 1,
"undocument": true,
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 12,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/Operator.js",
"memberof": null,
"longname": "es6/Operator.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "//# sourceMappingURL=Operator.js.map"
},
{
"__docId__": 13,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/OuterSubscriber.js",
"memberof": null,
"longname": "es6/OuterSubscriber.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "import { Subscriber } from './Subscriber';\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport var OuterSubscriber = (function (_super) {\n __extends(OuterSubscriber, _super);\n function OuterSubscriber() {\n _super.apply(this, arguments);\n }\n OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n this.destination.next(innerValue);\n };\n OuterSubscriber.prototype.notifyError = function (error, innerSub) {\n this.destination.error(error);\n };\n OuterSubscriber.prototype.notifyComplete = function (innerSub) {\n this.destination.complete();\n };\n return OuterSubscriber;\n}(Subscriber));\n//# sourceMappingURL=OuterSubscriber.js.map"
},
{
"__docId__": 14,
"kind": "variable",
"static": true,
"variation": null,
"name": "OuterSubscriber",
"memberof": "es6/OuterSubscriber.js",
"longname": "es6/OuterSubscriber.js~OuterSubscriber",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/OuterSubscriber.js",
"importStyle": "{OuterSubscriber}",
"description": "We need this JSDoc comment for affecting ESDoc.",
"lineNumber": 7,
"ignore": true,
"unknown": [
{
"tagName": "@extends",
"tagValue": "{Ignored}"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 15,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/ReplaySubject.js",
"memberof": null,
"longname": "es6/ReplaySubject.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "import { Subject } from './Subject';\nimport { queue } from './scheduler/queue';\nimport { Subscription } from './Subscription';\nimport { ObserveOnSubscriber } from './operator/observeOn';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\n/**\n * @class ReplaySubject<T>\n */\nexport var ReplaySubject = (function (_super) {\n __extends(ReplaySubject, _super);\n function ReplaySubject(bufferSize, windowTime, scheduler) {\n if (bufferSize === void 0) { bufferSize = Number.POSITIVE_INFINITY; }\n if (windowTime === void 0) { windowTime = Number.POSITIVE_INFINITY; }\n _super.call(this);\n this.scheduler = scheduler;\n this._events = [];\n this._bufferSize = bufferSize < 1 ? 1 : bufferSize;\n this._windowTime = windowTime < 1 ? 1 : windowTime;\n }\n ReplaySubject.prototype.next = function (value) {\n var now = this._getNow();\n this._events.push(new ReplayEvent(now, value));\n this._trimBufferThenGetEvents();\n _super.prototype.next.call(this, value);\n };\n ReplaySubject.prototype._subscribe = function (subscriber) {\n var _events = this._trimBufferThenGetEvents();\n var scheduler = this.scheduler;\n var subscription;\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.hasError) {\n subscription = Subscription.EMPTY;\n }\n else if (this.isStopped) {\n subscription = Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n subscription = new SubjectSubscription(this, subscriber);\n }\n if (scheduler) {\n subscriber.add(subscriber = new ObserveOnSubscriber(subscriber, scheduler));\n }\n var len = _events.length;\n for (var i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i].value);\n }\n if (this.hasError) {\n subscriber.error(this.thrownError);\n }\n else if (this.isStopped) {\n subscriber.complete();\n }\n return subscription;\n };\n ReplaySubject.prototype._getNow = function () {\n return (this.scheduler || queue).now();\n };\n ReplaySubject.prototype._trimBufferThenGetEvents = function () {\n var now = this._getNow();\n var _bufferSize = this._bufferSize;\n var _windowTime = this._windowTime;\n var _events = this._events;\n var eventsCount = _events.length;\n var spliceCount = 0;\n // Trim events that fall out of the time window.\n // Start at the front of the list. Break early once\n // we encounter an event that falls within the window.\n while (spliceCount < eventsCount) {\n if ((now - _events[spliceCount].time) < _windowTime) {\n break;\n }\n spliceCount++;\n }\n if (eventsCount > _bufferSize) {\n spliceCount = Math.max(spliceCount, eventsCount - _bufferSize);\n }\n if (spliceCount > 0) {\n _events.splice(0, spliceCount);\n }\n return _events;\n };\n return ReplaySubject;\n}(Subject));\nvar ReplayEvent = (function () {\n function ReplayEvent(time, value) {\n this.time = time;\n this.value = value;\n }\n return ReplayEvent;\n}());\n//# sourceMappingURL=ReplaySubject.js.map"
},
{
"__docId__": 16,
"kind": "variable",
"static": true,
"variation": null,
"name": "ReplaySubject",
"memberof": "es6/ReplaySubject.js",
"longname": "es6/ReplaySubject.js~ReplaySubject",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/ReplaySubject.js",
"importStyle": "{ReplaySubject}",
"description": "",
"lineNumber": 10,
"unknown": [
{
"tagName": "@class",
"tagValue": "ReplaySubject<T>"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 17,
"kind": "variable",
"static": true,
"variation": null,
"name": "ReplayEvent",
"memberof": "es6/ReplaySubject.js",
"longname": "es6/ReplaySubject.js~ReplayEvent",
"access": null,
"export": false,
"importPath": "@reactivex/rxjs/es6/ReplaySubject.js",
"importStyle": null,
"description": null,
"lineNumber": 88,
"undocument": true,
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 18,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/Rx.js",
"memberof": null,
"longname": "es6/Rx.js",
"access": null,
"description": null,
"lineNumber": 5,
"content": "/* tslint:disable:no-unused-variable */\n// Subject imported before Observable to bypass circular dependency issue since\n// Subject extends Observable and Observable references Subject in it's\n// definition\nexport { Subject, AnonymousSubject } from './Subject';\n/* tslint:enable:no-unused-variable */\nexport { Observable } from './Observable';\nimport './add/observable/bindCallback';\nimport './add/observable/bindNodeCallback';\nimport './add/observable/combineLatest';\nimport './add/observable/concat';\nimport './add/observable/defer';\nimport './add/observable/empty';\nimport './add/observable/forkJoin';\nimport './add/observable/from';\nimport './add/observable/fromEvent';\nimport './add/observable/fromEventPattern';\nimport './add/observable/fromPromise';\nimport './add/observable/generate';\nimport './add/observable/if';\nimport './add/observable/interval';\nimport './add/observable/merge';\nimport './add/observable/race';\nimport './add/observable/never';\nimport './add/observable/of';\nimport './add/observable/onErrorResumeNext';\nimport './add/observable/pairs';\nimport './add/observable/range';\nimport './add/observable/using';\nimport './add/observable/throw';\nimport './add/observable/timer';\nimport './add/observable/zip';\nimport './add/observable/dom/ajax';\nimport './add/observable/dom/webSocket';\nimport './add/operator/buffer';\nimport './add/operator/bufferCount';\nimport './add/operator/bufferTime';\nimport './add/operator/bufferToggle';\nimport './add/operator/bufferWhen';\nimport './add/operator/catch';\nimport './add/operator/combineAll';\nimport './add/operator/combineLatest';\nimport './add/operator/concat';\nimport './add/operator/concatAll';\nimport './add/operator/concatMap';\nimport './add/operator/concatMapTo';\nimport './add/operator/count';\nimport './add/operator/dematerialize';\nimport './add/operator/debounce';\nimport './add/operator/debounceTime';\nimport './add/operator/defaultIfEmpty';\nimport './add/operator/delay';\nimport './add/operator/delayWhen';\nimport './add/operator/distinct';\nimport './add/operator/distinctUntilChanged';\nimport './add/operator/distinctUntilKeyChanged';\nimport './add/operator/do';\nimport './add/operator/exhaust';\nimport './add/operator/exhaustMap';\nimport './add/operator/expand';\nimport './add/operator/elementAt';\nimport './add/operator/filter';\nimport './add/operator/finally';\nimport './add/operator/find';\nimport './add/operator/findIndex';\nimport './add/operator/first';\nimport './add/operator/groupBy';\nimport './add/operator/ignoreElements';\nimport './add/operator/isEmpty';\nimport './add/operator/audit';\nimport './add/operator/auditTime';\nimport './add/operator/last';\nimport './add/operator/let';\nimport './add/operator/every';\nimport './add/operator/map';\nimport './add/operator/mapTo';\nimport './add/operator/materialize';\nimport './add/operator/max';\nimport './add/operator/merge';\nimport './add/operator/mergeAll';\nimport './add/operator/mergeMap';\nimport './add/operator/mergeMapTo';\nimport './add/operator/mergeScan';\nimport './add/operator/min';\nimport './add/operator/multicast';\nimport './add/operator/observeOn';\nimport './add/operator/onErrorResumeNext';\nimport './add/operator/pairwise';\nimport './add/operator/partition';\nimport './add/operator/pluck';\nimport './add/operator/publish';\nimport './add/operator/publishBehavior';\nimport './add/operator/publishReplay';\nimport './add/operator/publishLast';\nimport './add/operator/race';\nimport './add/operator/reduce';\nimport './add/operator/repeat';\nimport './add/operator/repeatWhen';\nimport './add/operator/retry';\nimport './add/operator/retryWhen';\nimport './add/operator/sample';\nimport './add/operator/sampleTime';\nimport './add/operator/scan';\nimport './add/operator/sequenceEqual';\nimport './add/operator/share';\nimport './add/operator/single';\nimport './add/operator/skip';\nimport './add/operator/skipUntil';\nimport './add/operator/skipWhile';\nimport './add/operator/startWith';\nimport './add/operator/subscribeOn';\nimport './add/operator/switch';\nimport './add/operator/switchMap';\nimport './add/operator/switchMapTo';\nimport './add/operator/take';\nimport './add/operator/takeLast';\nimport './add/operator/takeUntil';\nimport './add/operator/takeWhile';\nimport './add/operator/throttle';\nimport './add/operator/throttleTime';\nimport './add/operator/timeInterval';\nimport './add/operator/timeout';\nimport './add/operator/timeoutWith';\nimport './add/operator/timestamp';\nimport './add/operator/toArray';\nimport './add/operator/toPromise';\nimport './add/operator/window';\nimport './add/operator/windowCount';\nimport './add/operator/windowTime';\nimport './add/operator/windowToggle';\nimport './add/operator/windowWhen';\nimport './add/operator/withLatestFrom';\nimport './add/operator/zip';\nimport './add/operator/zipAll';\n/* tslint:disable:no-unused-variable */\nexport { Subscription } from './Subscription';\nexport { Subscriber } from './Subscriber';\nexport { AsyncSubject } from './AsyncSubject';\nexport { ReplaySubject } from './ReplaySubject';\nexport { BehaviorSubject } from './BehaviorSubject';\nexport { ConnectableObservable } from './observable/ConnectableObservable';\nexport { Notification } from './Notification';\nexport { EmptyError } from './util/EmptyError';\nexport { ArgumentOutOfRangeError } from './util/ArgumentOutOfRangeError';\nexport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nexport { TimeoutError } from './util/TimeoutError';\nexport { UnsubscriptionError } from './util/UnsubscriptionError';\nexport { TimeInterval } from './operator/timeInterval';\nexport { Timestamp } from './operator/timestamp';\nexport { TestScheduler } from './testing/TestScheduler';\nexport { VirtualTimeScheduler } from './scheduler/VirtualTimeScheduler';\nexport { AjaxResponse, AjaxError, AjaxTimeoutError } from './observable/dom/AjaxObservable';\nimport { asap } from './scheduler/asap';\nimport { async } from './scheduler/async';\nimport { queue } from './scheduler/queue';\nimport { animationFrame } from './scheduler/animationFrame';\nimport { $$rxSubscriber as rxSubscriber } from './symbol/rxSubscriber';\nimport { $$iterator as iterator } from './symbol/iterator';\nimport { $$observable as observable } from './symbol/observable';\n/* tslint:enable:no-unused-variable */\n/**\n * @typedef {Object} Rx.Scheduler\n * @property {Scheduler} queue Schedules on a queue in the current event frame\n * (trampoline scheduler). Use this for iteration operations.\n * @property {Scheduler} asap Schedules on the micro task queue, which uses the\n * fastest transport mechanism available, either Node.js' `process.nextTick()`\n * or Web Worker MessageChannel or setTimeout or others. Use this for\n * asynchronous conversions.\n * @property {Scheduler} async Schedules work with `setInterval`. Use this for\n * time-based operations.\n * @property {Scheduler} animationFrame Schedules work with `requestAnimationFrame`.\n * Use this for synchronizing with the platform's painting\n */\nvar Scheduler = {\n asap: asap,\n queue: queue,\n animationFrame: animationFrame,\n async: async\n};\n/**\n * @typedef {Object} Rx.Symbol\n * @property {Symbol|string} rxSubscriber A symbol to use as a property name to\n * retrieve an \"Rx safe\" Observer from an object. \"Rx safety\" can be defined as\n * an object that has all of the traits of an Rx Subscriber, including the\n * ability to add and remove subscriptions to the subscription chain and\n * guarantees involving event triggering (can't \"next\" after unsubscription,\n * etc).\n * @property {Symbol|string} observable A symbol to use as a property name to\n * retrieve an Observable as defined by the [ECMAScript \"Observable\" spec](https://github.com/zenparsing/es-observable).\n * @property {Symbol|string} iterator The ES6 symbol to use as a property name\n * to retrieve an iterator from an object.\n */\nvar Symbol = {\n rxSubscriber: rxSubscriber,\n observable: observable,\n iterator: iterator\n};\nexport { Scheduler, Symbol };\n//# sourceMappingURL=Rx.js.map"
},
{
"__docId__": 19,
"kind": "typedef",
"static": true,
"variation": null,
"name": "Rx.Scheduler",
"memberof": "es6/Rx.js",
"longname": "es6/Rx.js~Rx.Scheduler",
"access": null,
"description": "",
"lineNumber": 174,
"properties": [
{
"nullable": null,
"types": [
"Scheduler"
],
"spread": false,
"optional": false,
"name": "queue",
"description": "Schedules on a queue in the current event frame\n(trampoline scheduler). Use this for iteration operations."
},
{
"nullable": null,
"types": [
"Scheduler"
],
"spread": false,
"optional": false,
"name": "asap",
"description": "Schedules on the micro task queue, which uses the\nfastest transport mechanism available, either Node.js' `process.nextTick()`\nor Web Worker MessageChannel or setTimeout or others. Use this for\nasynchronous conversions."
},
{
"nullable": null,
"types": [
"Scheduler"
],
"spread": false,
"optional": false,
"name": "async",
"description": "Schedules work with `setInterval`. Use this for\ntime-based operations."
},
{
"nullable": null,
"types": [
"Scheduler"
],
"spread": false,
"optional": false,
"name": "animationFrame",
"description": "Schedules work with `requestAnimationFrame`.\nUse this for synchronizing with the platform's painting"
}
],
"type": {
"types": [
"Object"
],
"optional": false,
"name": "Rx.Scheduler"
}
},
{
"__docId__": 20,
"kind": "typedef",
"static": true,
"variation": null,
"name": "Rx.Symbol",
"memberof": "es6/Rx.js",
"longname": "es6/Rx.js~Rx.Symbol",
"access": null,
"description": "",
"lineNumber": 193,
"properties": [
{
"nullable": null,
"types": [
"Symbol",
"string"
],
"spread": false,
"optional": false,
"name": "rxSubscriber",
"description": "A symbol to use as a property name to\nretrieve an \"Rx safe\" Observer from an object. \"Rx safety\" can be defined as\nan object that has all of the traits of an Rx Subscriber, including the\nability to add and remove subscriptions to the subscription chain and\nguarantees involving event triggering (can't \"next\" after unsubscription,\netc)."
},
{
"nullable": null,
"types": [
"Symbol",
"string"
],
"spread": false,
"optional": false,
"name": "observable",
"description": "A symbol to use as a property name to\nretrieve an Observable as defined by the [ECMAScript \"Observable\" spec](https://github.com/zenparsing/es-observable)."
},
{
"nullable": null,
"types": [
"Symbol",
"string"
],
"spread": false,
"optional": false,
"name": "iterator",
"description": "The ES6 symbol to use as a property name\nto retrieve an iterator from an object."
}
],
"type": {
"types": [
"Object"
],
"optional": false,
"name": "Rx.Symbol"
}
},
{
"__docId__": 21,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/Scheduler.js",
"memberof": null,
"longname": "es6/Scheduler.js",
"access": null,
"description": null,
"lineNumber": 17,
"content": "/**\n * An execution context and a data structure to order tasks and schedule their\n * execution. Provides a notion of (potentially virtual) time, through the\n * `now()` getter method.\n *\n * Each unit of work in a Scheduler is called an {@link Action}.\n *\n * ```ts\n * class Scheduler {\n * now(): number;\n * schedule(work, delay?, state?): Subscription;\n * }\n * ```\n *\n * @class Scheduler\n */\nexport var Scheduler = (function () {\n function Scheduler(SchedulerAction, now) {\n if (now === void 0) { now = Scheduler.now; }\n this.SchedulerAction = SchedulerAction;\n this.now = now;\n }\n /**\n * Schedules a function, `work`, for execution. May happen at some point in\n * the future, according to the `delay` parameter, if specified. May be passed\n * some context object, `state`, which will be passed to the `work` function.\n *\n * The given arguments will be processed an stored as an Action object in a\n * queue of actions.\n *\n * @param {function(state: ?T): ?Subscription} work A function representing a\n * task, or some unit of work to be executed by the Scheduler.\n * @param {number} [delay] Time to wait before executing the work, where the\n * time unit is implicit and defined by the Scheduler itself.\n * @param {T} [state] Some contextual data that the `work` function uses when\n * called by the Scheduler.\n * @return {Subscription} A subscription in order to be able to unsubscribe\n * the scheduled work.\n */\n Scheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) { delay = 0; }\n return new this.SchedulerAction(this, work).schedule(state, delay);\n };\n Scheduler.now = Date.now ? Date.now : function () { return +new Date(); };\n return Scheduler;\n}());\n//# sourceMappingURL=Scheduler.js.map"
},
{
"__docId__": 22,
"kind": "variable",
"static": true,
"variation": null,
"name": "Scheduler",
"memberof": "es6/Scheduler.js",
"longname": "es6/Scheduler.js~Scheduler",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/Scheduler.js",
"importStyle": "{Scheduler}",
"description": "An execution context and a data structure to order tasks and schedule their\nexecution. Provides a notion of (potentially virtual) time, through the\n`now()` getter method.\n\nEach unit of work in a Scheduler is called an {@link Action}.\n\n```ts\nclass Scheduler {\n now(): number;\n schedule(work, delay?, state?): Subscription;\n}\n```",
"lineNumber": 17,
"unknown": [
{
"tagName": "@class",
"tagValue": "Scheduler"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 23,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/Subject.js",
"memberof": null,
"longname": "es6/Subject.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "import { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nimport { $$rxSubscriber } from './symbol/rxSubscriber';\n/**\n * @class SubjectSubscriber<T>\n */\nexport var SubjectSubscriber = (function (_super) {\n __extends(SubjectSubscriber, _super);\n function SubjectSubscriber(destination) {\n _super.call(this, destination);\n this.destination = destination;\n }\n return SubjectSubscriber;\n}(Subscriber));\n/**\n * @class Subject<T>\n */\nexport var Subject = (function (_super) {\n __extends(Subject, _super);\n function Subject() {\n _super.call(this);\n this.observers = [];\n this.closed = false;\n this.isStopped = false;\n this.hasError = false;\n this.thrownError = null;\n }\n Subject.prototype[$$rxSubscriber] = function () {\n return new SubjectSubscriber(this);\n };\n Subject.prototype.lift = function (operator) {\n var subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype.next = function (value) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n if (!this.isStopped) {\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].next(value);\n }\n }\n };\n Subject.prototype.error = function (err) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.hasError = true;\n this.thrownError = err;\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].error(err);\n }\n this.observers.length = 0;\n };\n Subject.prototype.complete = function () {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].complete();\n }\n this.observers.length = 0;\n };\n Subject.prototype.unsubscribe = function () {\n this.isStopped = true;\n this.closed = true;\n this.observers = null;\n };\n Subject.prototype._subscribe = function (subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription.EMPTY;\n }\n else if (this.isStopped) {\n subscriber.complete();\n return Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n return new SubjectSubscription(this, subscriber);\n }\n };\n Subject.prototype.asObservable = function () {\n var observable = new Observable();\n observable.source = this;\n return observable;\n };\n Subject.create = function (destination, source) {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n}(Observable));\n/**\n * @class AnonymousSubject<T>\n */\nexport var AnonymousSubject = (function (_super) {\n __extends(AnonymousSubject, _super);\n function AnonymousSubject(destination, source) {\n _super.call(this);\n this.destination = destination;\n this.source = source;\n }\n AnonymousSubject.prototype.next = function (value) {\n var destination = this.destination;\n if (destination && destination.next) {\n destination.next(value);\n }\n };\n AnonymousSubject.prototype.error = function (err) {\n var destination = this.destination;\n if (destination && destination.error) {\n this.destination.error(err);\n }\n };\n AnonymousSubject.prototype.complete = function () {\n var destination = this.destination;\n if (destination && destination.complete) {\n this.destination.complete();\n }\n };\n AnonymousSubject.prototype._subscribe = function (subscriber) {\n var source = this.source;\n if (source) {\n return this.source.subscribe(subscriber);\n }\n else {\n return Subscription.EMPTY;\n }\n };\n return AnonymousSubject;\n}(Subject));\n//# sourceMappingURL=Subject.js.map"
},
{
"__docId__": 24,
"kind": "variable",
"static": true,
"variation": null,
"name": "SubjectSubscriber",
"memberof": "es6/Subject.js",
"longname": "es6/Subject.js~SubjectSubscriber",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/Subject.js",
"importStyle": "{SubjectSubscriber}",
"description": "",
"lineNumber": 10,
"unknown": [
{
"tagName": "@class",
"tagValue": "SubjectSubscriber<T>"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 25,
"kind": "variable",
"static": true,
"variation": null,
"name": "Subject",
"memberof": "es6/Subject.js",
"longname": "es6/Subject.js~Subject",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/Subject.js",
"importStyle": "{Subject}",
"description": "",
"lineNumber": 21,
"unknown": [
{
"tagName": "@class",
"tagValue": "Subject<T>"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 26,
"kind": "variable",
"static": true,
"variation": null,
"name": "AnonymousSubject",
"memberof": "es6/Subject.js",
"longname": "es6/Subject.js~AnonymousSubject",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/Subject.js",
"importStyle": "{AnonymousSubject}",
"description": "",
"lineNumber": 115,
"unknown": [
{
"tagName": "@class",
"tagValue": "AnonymousSubject<T>"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 27,
"kind": "file",
"static": true,
"variation": null,
"name": "es6/SubjectSubscription.js",
"memberof": null,
"longname": "es6/SubjectSubscription.js",
"access": null,
"description": null,
"lineNumber": 1,
"content": "import { Subscription } from './Subscription';\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport var SubjectSubscription = (function (_super) {\n __extends(SubjectSubscription, _super);\n function SubjectSubscription(subject, subscriber) {\n _super.call(this);\n this.subject = subject;\n this.subscriber = subscriber;\n this.closed = false;\n }\n SubjectSubscription.prototype.unsubscribe = function () {\n if (this.closed) {\n return;\n }\n this.closed = true;\n var subject = this.subject;\n var observers = subject.observers;\n this.subject = null;\n if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {\n return;\n }\n var subscriberIndex = observers.indexOf(this.subscriber);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n };\n return SubjectSubscription;\n}(Subscription));\n//# sourceMappingURL=SubjectSubscription.js.map"
},
{
"__docId__": 28,
"kind": "variable",
"static": true,
"variation": null,
"name": "SubjectSubscription",
"memberof": "es6/SubjectSubscription.js",
"longname": "es6/SubjectSubscription.js~SubjectSubscription",
"access": null,
"export": true,
"importPath": "@reactivex/rxjs/es6/SubjectSubscription.js",
"importStyle": "{SubjectSubscription}",
"description": "We need this JSDoc comment for affecting ESDoc.",
"lineNumber": 7,
"ignore": true,
"unknown": [
{
"tagName": "@extends",
"tagValue": "{Ignored}"
}
],
"type": {
"types": [
"*"
]
}
},
{
"__docId__": 29,
"kind": "file",
"static": true,
"variation