Rx.d.ts 7.6 KB

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