Rx.js 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /* tslint:disable:no-unused-variable */
  2. // Subject imported before Observable to bypass circular dependency issue since
  3. // Subject extends Observable and Observable references Subject in it's
  4. // definition
  5. /** PURE_IMPORTS_START ._scheduler_asap,._scheduler_async,._scheduler_queue,._scheduler_animationFrame,._symbol_rxSubscriber,._symbol_iterator,._symbol_observable,._operators PURE_IMPORTS_END */
  6. export { Subject, AnonymousSubject } from './Subject';
  7. /* tslint:enable:no-unused-variable */
  8. export { Observable } from './Observable';
  9. import './add/observable/bindCallback';
  10. import './add/observable/bindNodeCallback';
  11. import './add/observable/combineLatest';
  12. import './add/observable/concat';
  13. import './add/observable/defer';
  14. import './add/observable/empty';
  15. import './add/observable/forkJoin';
  16. import './add/observable/from';
  17. import './add/observable/fromEvent';
  18. import './add/observable/fromEventPattern';
  19. import './add/observable/fromPromise';
  20. import './add/observable/generate';
  21. import './add/observable/if';
  22. import './add/observable/interval';
  23. import './add/observable/merge';
  24. import './add/observable/race';
  25. import './add/observable/never';
  26. import './add/observable/of';
  27. import './add/observable/onErrorResumeNext';
  28. import './add/observable/pairs';
  29. import './add/observable/range';
  30. import './add/observable/using';
  31. import './add/observable/throw';
  32. import './add/observable/timer';
  33. import './add/observable/zip';
  34. import './add/observable/dom/ajax';
  35. import './add/observable/dom/webSocket';
  36. import './add/operator/buffer';
  37. import './add/operator/bufferCount';
  38. import './add/operator/bufferTime';
  39. import './add/operator/bufferToggle';
  40. import './add/operator/bufferWhen';
  41. import './add/operator/catch';
  42. import './add/operator/combineAll';
  43. import './add/operator/combineLatest';
  44. import './add/operator/concat';
  45. import './add/operator/concatAll';
  46. import './add/operator/concatMap';
  47. import './add/operator/concatMapTo';
  48. import './add/operator/count';
  49. import './add/operator/dematerialize';
  50. import './add/operator/debounce';
  51. import './add/operator/debounceTime';
  52. import './add/operator/defaultIfEmpty';
  53. import './add/operator/delay';
  54. import './add/operator/delayWhen';
  55. import './add/operator/distinct';
  56. import './add/operator/distinctUntilChanged';
  57. import './add/operator/distinctUntilKeyChanged';
  58. import './add/operator/do';
  59. import './add/operator/exhaust';
  60. import './add/operator/exhaustMap';
  61. import './add/operator/expand';
  62. import './add/operator/elementAt';
  63. import './add/operator/filter';
  64. import './add/operator/finally';
  65. import './add/operator/find';
  66. import './add/operator/findIndex';
  67. import './add/operator/first';
  68. import './add/operator/groupBy';
  69. import './add/operator/ignoreElements';
  70. import './add/operator/isEmpty';
  71. import './add/operator/audit';
  72. import './add/operator/auditTime';
  73. import './add/operator/last';
  74. import './add/operator/let';
  75. import './add/operator/every';
  76. import './add/operator/map';
  77. import './add/operator/mapTo';
  78. import './add/operator/materialize';
  79. import './add/operator/max';
  80. import './add/operator/merge';
  81. import './add/operator/mergeAll';
  82. import './add/operator/mergeMap';
  83. import './add/operator/mergeMapTo';
  84. import './add/operator/mergeScan';
  85. import './add/operator/min';
  86. import './add/operator/multicast';
  87. import './add/operator/observeOn';
  88. import './add/operator/onErrorResumeNext';
  89. import './add/operator/pairwise';
  90. import './add/operator/partition';
  91. import './add/operator/pluck';
  92. import './add/operator/publish';
  93. import './add/operator/publishBehavior';
  94. import './add/operator/publishReplay';
  95. import './add/operator/publishLast';
  96. import './add/operator/race';
  97. import './add/operator/reduce';
  98. import './add/operator/repeat';
  99. import './add/operator/repeatWhen';
  100. import './add/operator/retry';
  101. import './add/operator/retryWhen';
  102. import './add/operator/sample';
  103. import './add/operator/sampleTime';
  104. import './add/operator/scan';
  105. import './add/operator/sequenceEqual';
  106. import './add/operator/share';
  107. import './add/operator/shareReplay';
  108. import './add/operator/single';
  109. import './add/operator/skip';
  110. import './add/operator/skipLast';
  111. import './add/operator/skipUntil';
  112. import './add/operator/skipWhile';
  113. import './add/operator/startWith';
  114. import './add/operator/subscribeOn';
  115. import './add/operator/switch';
  116. import './add/operator/switchMap';
  117. import './add/operator/switchMapTo';
  118. import './add/operator/take';
  119. import './add/operator/takeLast';
  120. import './add/operator/takeUntil';
  121. import './add/operator/takeWhile';
  122. import './add/operator/throttle';
  123. import './add/operator/throttleTime';
  124. import './add/operator/timeInterval';
  125. import './add/operator/timeout';
  126. import './add/operator/timeoutWith';
  127. import './add/operator/timestamp';
  128. import './add/operator/toArray';
  129. import './add/operator/toPromise';
  130. import './add/operator/window';
  131. import './add/operator/windowCount';
  132. import './add/operator/windowTime';
  133. import './add/operator/windowToggle';
  134. import './add/operator/windowWhen';
  135. import './add/operator/withLatestFrom';
  136. import './add/operator/zip';
  137. import './add/operator/zipAll';
  138. /* tslint:disable:no-unused-variable */
  139. export { Subscription } from './Subscription';
  140. export { Subscriber } from './Subscriber';
  141. export { AsyncSubject } from './AsyncSubject';
  142. export { ReplaySubject } from './ReplaySubject';
  143. export { BehaviorSubject } from './BehaviorSubject';
  144. export { ConnectableObservable } from './observable/ConnectableObservable';
  145. export { Notification } from './Notification';
  146. export { EmptyError } from './util/EmptyError';
  147. export { ArgumentOutOfRangeError } from './util/ArgumentOutOfRangeError';
  148. export { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';
  149. export { TimeoutError } from './util/TimeoutError';
  150. export { UnsubscriptionError } from './util/UnsubscriptionError';
  151. export { TimeInterval } from './operator/timeInterval';
  152. export { Timestamp } from './operators/timestamp';
  153. export { TestScheduler } from './testing/TestScheduler';
  154. export { VirtualTimeScheduler } from './scheduler/VirtualTimeScheduler';
  155. export { AjaxResponse, AjaxError, AjaxTimeoutError } from './observable/dom/AjaxObservable';
  156. export { pipe } from './util/pipe';
  157. import { asap } from './scheduler/asap';
  158. import { async } from './scheduler/async';
  159. import { queue } from './scheduler/queue';
  160. import { animationFrame } from './scheduler/animationFrame';
  161. import { rxSubscriber } from './symbol/rxSubscriber';
  162. import { iterator } from './symbol/iterator';
  163. import { observable } from './symbol/observable';
  164. import * as _operators from './operators';
  165. export var operators = _operators;
  166. /* tslint:enable:no-unused-variable */
  167. /**
  168. * @typedef {Object} Rx.Scheduler
  169. * @property {Scheduler} queue Schedules on a queue in the current event frame
  170. * (trampoline scheduler). Use this for iteration operations.
  171. * @property {Scheduler} asap Schedules on the micro task queue, which uses the
  172. * fastest transport mechanism available, either Node.js' `process.nextTick()`
  173. * or Web Worker MessageChannel or setTimeout or others. Use this for
  174. * asynchronous conversions.
  175. * @property {Scheduler} async Schedules work with `setInterval`. Use this for
  176. * time-based operations.
  177. * @property {Scheduler} animationFrame Schedules work with `requestAnimationFrame`.
  178. * Use this for synchronizing with the platform's painting
  179. */
  180. var Scheduler = {
  181. asap: asap,
  182. queue: queue,
  183. animationFrame: animationFrame,
  184. async: async
  185. };
  186. /**
  187. * @typedef {Object} Rx.Symbol
  188. * @property {Symbol|string} rxSubscriber A symbol to use as a property name to
  189. * retrieve an "Rx safe" Observer from an object. "Rx safety" can be defined as
  190. * an object that has all of the traits of an Rx Subscriber, including the
  191. * ability to add and remove subscriptions to the subscription chain and
  192. * guarantees involving event triggering (can't "next" after unsubscription,
  193. * etc).
  194. * @property {Symbol|string} observable A symbol to use as a property name to
  195. * retrieve an Observable as defined by the [ECMAScript "Observable" spec](https://github.com/zenparsing/es-observable).
  196. * @property {Symbol|string} iterator The ES6 symbol to use as a property name
  197. * to retrieve an iterator from an object.
  198. */
  199. var Symbol = {
  200. rxSubscriber: rxSubscriber,
  201. observable: observable,
  202. iterator: iterator
  203. };
  204. export { Scheduler, Symbol };
  205. //# sourceMappingURL=Rx.js.map