@mastra/nestjs 0.1.8-alpha.1 → 0.1.8-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/_types/rxjs/dist/types/index.d.ts +173 -0
  3. package/dist/_types/rxjs/dist/types/internal/AnyCatcher.d.ts +10 -0
  4. package/dist/_types/rxjs/dist/types/internal/AsyncSubject.d.ts +15 -0
  5. package/dist/_types/rxjs/dist/types/internal/BehaviorSubject.d.ts +15 -0
  6. package/dist/_types/rxjs/dist/types/internal/Notification.d.ts +180 -0
  7. package/dist/_types/rxjs/dist/types/internal/Observable.d.ts +128 -0
  8. package/dist/_types/rxjs/dist/types/internal/Operator.d.ts +9 -0
  9. package/dist/_types/rxjs/dist/types/internal/ReplaySubject.d.ts +49 -0
  10. package/dist/_types/rxjs/dist/types/internal/Scheduler.d.ts +55 -0
  11. package/dist/_types/rxjs/dist/types/internal/Subject.d.ts +58 -0
  12. package/dist/_types/rxjs/dist/types/internal/Subscriber.d.ts +78 -0
  13. package/dist/_types/rxjs/dist/types/internal/Subscription.d.ts +96 -0
  14. package/dist/_types/rxjs/dist/types/internal/config.d.ts +73 -0
  15. package/dist/_types/rxjs/dist/types/internal/firstValueFrom.d.ts +7 -0
  16. package/dist/_types/rxjs/dist/types/internal/lastValueFrom.d.ts +7 -0
  17. package/dist/_types/rxjs/dist/types/internal/observable/ConnectableObservable.d.ts +42 -0
  18. package/dist/_types/rxjs/dist/types/internal/observable/bindCallback.d.ts +5 -0
  19. package/dist/_types/rxjs/dist/types/internal/observable/bindNodeCallback.d.ts +5 -0
  20. package/dist/_types/rxjs/dist/types/internal/observable/combineLatest.d.ts +33 -0
  21. package/dist/_types/rxjs/dist/types/internal/observable/concat.d.ts +5 -0
  22. package/dist/_types/rxjs/dist/types/internal/observable/connectable.d.ts +27 -0
  23. package/dist/_types/rxjs/dist/types/internal/observable/defer.d.ts +52 -0
  24. package/dist/_types/rxjs/dist/types/internal/observable/dom/animationFrames.d.ts +76 -0
  25. package/dist/_types/rxjs/dist/types/internal/observable/empty.d.ts +72 -0
  26. package/dist/_types/rxjs/dist/types/internal/observable/forkJoin.d.ts +24 -0
  27. package/dist/_types/rxjs/dist/types/internal/observable/from.d.ts +6 -0
  28. package/dist/_types/rxjs/dist/types/internal/observable/fromEvent.d.ts +45 -0
  29. package/dist/_types/rxjs/dist/types/internal/observable/fromEventPattern.d.ts +5 -0
  30. package/dist/_types/rxjs/dist/types/internal/observable/generate.d.ts +311 -0
  31. package/dist/_types/rxjs/dist/types/internal/observable/iif.d.ts +82 -0
  32. package/dist/_types/rxjs/dist/types/internal/observable/interval.d.ts +49 -0
  33. package/dist/_types/rxjs/dist/types/internal/observable/merge.d.ts +9 -0
  34. package/dist/_types/rxjs/dist/types/internal/observable/never.d.ts +40 -0
  35. package/dist/_types/rxjs/dist/types/internal/observable/of.d.ts +14 -0
  36. package/dist/_types/rxjs/dist/types/internal/observable/onErrorResumeNext.d.ts +5 -0
  37. package/dist/_types/rxjs/dist/types/internal/observable/pairs.d.ts +19 -0
  38. package/dist/_types/rxjs/dist/types/internal/observable/partition.d.ts +9 -0
  39. package/dist/_types/rxjs/dist/types/internal/observable/race.d.ts +12 -0
  40. package/dist/_types/rxjs/dist/types/internal/observable/range.d.ts +8 -0
  41. package/dist/_types/rxjs/dist/types/internal/observable/throwError.d.ts +115 -0
  42. package/dist/_types/rxjs/dist/types/internal/observable/timer.d.ts +126 -0
  43. package/dist/_types/rxjs/dist/types/internal/observable/using.d.ts +32 -0
  44. package/dist/_types/rxjs/dist/types/internal/observable/zip.d.ts +7 -0
  45. package/dist/_types/rxjs/dist/types/internal/operators/audit.d.ts +48 -0
  46. package/dist/_types/rxjs/dist/types/internal/operators/auditTime.d.ts +50 -0
  47. package/dist/_types/rxjs/dist/types/internal/operators/buffer.d.ts +41 -0
  48. package/dist/_types/rxjs/dist/types/internal/operators/bufferCount.d.ts +54 -0
  49. package/dist/_types/rxjs/dist/types/internal/operators/bufferTime.d.ts +5 -0
  50. package/dist/_types/rxjs/dist/types/internal/operators/bufferToggle.d.ts +46 -0
  51. package/dist/_types/rxjs/dist/types/internal/operators/bufferWhen.d.ts +41 -0
  52. package/dist/_types/rxjs/dist/types/internal/operators/catchError.d.ts +4 -0
  53. package/dist/_types/rxjs/dist/types/internal/operators/combineAll.d.ts +6 -0
  54. package/dist/_types/rxjs/dist/types/internal/operators/combineLatestAll.d.ts +6 -0
  55. package/dist/_types/rxjs/dist/types/internal/operators/combineLatestWith.d.ts +43 -0
  56. package/dist/_types/rxjs/dist/types/internal/operators/concatAll.d.ts +59 -0
  57. package/dist/_types/rxjs/dist/types/internal/operators/concatMap.d.ts +7 -0
  58. package/dist/_types/rxjs/dist/types/internal/operators/concatMapTo.d.ts +8 -0
  59. package/dist/_types/rxjs/dist/types/internal/operators/concatWith.d.ts +43 -0
  60. package/dist/_types/rxjs/dist/types/internal/operators/connect.d.ts +87 -0
  61. package/dist/_types/rxjs/dist/types/internal/operators/count.d.ts +58 -0
  62. package/dist/_types/rxjs/dist/types/internal/operators/debounce.d.ts +61 -0
  63. package/dist/_types/rxjs/dist/types/internal/operators/debounceTime.d.ts +60 -0
  64. package/dist/_types/rxjs/dist/types/internal/operators/defaultIfEmpty.d.ts +38 -0
  65. package/dist/_types/rxjs/dist/types/internal/operators/delay.d.ts +59 -0
  66. package/dist/_types/rxjs/dist/types/internal/operators/delayWhen.d.ts +6 -0
  67. package/dist/_types/rxjs/dist/types/internal/operators/dematerialize.d.ts +51 -0
  68. package/dist/_types/rxjs/dist/types/internal/operators/distinct.d.ts +60 -0
  69. package/dist/_types/rxjs/dist/types/internal/operators/distinctUntilChanged.d.ts +4 -0
  70. package/dist/_types/rxjs/dist/types/internal/operators/distinctUntilKeyChanged.d.ts +4 -0
  71. package/dist/_types/rxjs/dist/types/internal/operators/elementAt.d.ts +51 -0
  72. package/dist/_types/rxjs/dist/types/internal/operators/endWith.d.ts +7 -0
  73. package/dist/_types/rxjs/dist/types/internal/operators/every.d.ts +9 -0
  74. package/dist/_types/rxjs/dist/types/internal/operators/exhaust.d.ts +6 -0
  75. package/dist/_types/rxjs/dist/types/internal/operators/exhaustAll.d.ts +47 -0
  76. package/dist/_types/rxjs/dist/types/internal/operators/exhaustMap.d.ts +7 -0
  77. package/dist/_types/rxjs/dist/types/internal/operators/expand.d.ts +9 -0
  78. package/dist/_types/rxjs/dist/types/internal/operators/filter.d.ts +9 -0
  79. package/dist/_types/rxjs/dist/types/internal/operators/finalize.d.ts +64 -0
  80. package/dist/_types/rxjs/dist/types/internal/operators/find.d.ts +12 -0
  81. package/dist/_types/rxjs/dist/types/internal/operators/findIndex.d.ts +9 -0
  82. package/dist/_types/rxjs/dist/types/internal/operators/first.d.ts +9 -0
  83. package/dist/_types/rxjs/dist/types/internal/operators/flatMap.d.ts +6 -0
  84. package/dist/_types/rxjs/dist/types/internal/operators/groupBy.d.ts +119 -0
  85. package/dist/_types/rxjs/dist/types/internal/operators/ignoreElements.d.ts +38 -0
  86. package/dist/_types/rxjs/dist/types/internal/operators/isEmpty.d.ts +64 -0
  87. package/dist/_types/rxjs/dist/types/internal/operators/last.d.ts +8 -0
  88. package/dist/_types/rxjs/dist/types/internal/operators/map.d.ts +5 -0
  89. package/dist/_types/rxjs/dist/types/internal/operators/mapTo.d.ts +10 -0
  90. package/dist/_types/rxjs/dist/types/internal/operators/materialize.d.ts +52 -0
  91. package/dist/_types/rxjs/dist/types/internal/operators/max.d.ts +49 -0
  92. package/dist/_types/rxjs/dist/types/internal/operators/mergeAll.d.ts +62 -0
  93. package/dist/_types/rxjs/dist/types/internal/operators/mergeMap.d.ts +7 -0
  94. package/dist/_types/rxjs/dist/types/internal/operators/mergeMapTo.d.ts +9 -0
  95. package/dist/_types/rxjs/dist/types/internal/operators/mergeScan.d.ts +69 -0
  96. package/dist/_types/rxjs/dist/types/internal/operators/mergeWith.d.ts +44 -0
  97. package/dist/_types/rxjs/dist/types/internal/operators/min.d.ts +49 -0
  98. package/dist/_types/rxjs/dist/types/internal/operators/multicast.d.ts +63 -0
  99. package/dist/_types/rxjs/dist/types/internal/operators/observeOn.d.ts +56 -0
  100. package/dist/_types/rxjs/dist/types/internal/operators/onErrorResumeNextWith.d.ts +8 -0
  101. package/dist/_types/rxjs/dist/types/internal/operators/pairwise.d.ts +46 -0
  102. package/dist/_types/rxjs/dist/types/internal/operators/pluck.d.ts +18 -0
  103. package/dist/_types/rxjs/dist/types/internal/operators/publish.d.ts +30 -0
  104. package/dist/_types/rxjs/dist/types/internal/operators/publishBehavior.d.ts +19 -0
  105. package/dist/_types/rxjs/dist/types/internal/operators/publishLast.d.ts +69 -0
  106. package/dist/_types/rxjs/dist/types/internal/operators/publishReplay.d.ts +56 -0
  107. package/dist/_types/rxjs/dist/types/internal/operators/raceWith.d.ts +29 -0
  108. package/dist/_types/rxjs/dist/types/internal/operators/reduce.d.ts +5 -0
  109. package/dist/_types/rxjs/dist/types/internal/operators/refCount.d.ts +61 -0
  110. package/dist/_types/rxjs/dist/types/internal/operators/repeat.d.ts +108 -0
  111. package/dist/_types/rxjs/dist/types/internal/operators/repeatWhen.d.ts +38 -0
  112. package/dist/_types/rxjs/dist/types/internal/operators/retry.d.ts +28 -0
  113. package/dist/_types/rxjs/dist/types/internal/operators/retryWhen.d.ts +61 -0
  114. package/dist/_types/rxjs/dist/types/internal/operators/sample.d.ts +43 -0
  115. package/dist/_types/rxjs/dist/types/internal/operators/sampleTime.d.ts +46 -0
  116. package/dist/_types/rxjs/dist/types/internal/operators/scan.d.ts +5 -0
  117. package/dist/_types/rxjs/dist/types/internal/operators/sequenceEqual.d.ts +60 -0
  118. package/dist/_types/rxjs/dist/types/internal/operators/share.d.ts +43 -0
  119. package/dist/_types/rxjs/dist/types/internal/operators/shareReplay.d.ts +10 -0
  120. package/dist/_types/rxjs/dist/types/internal/operators/single.d.ts +5 -0
  121. package/dist/_types/rxjs/dist/types/internal/operators/skip.d.ts +36 -0
  122. package/dist/_types/rxjs/dist/types/internal/operators/skipLast.d.ts +45 -0
  123. package/dist/_types/rxjs/dist/types/internal/operators/skipUntil.d.ts +48 -0
  124. package/dist/_types/rxjs/dist/types/internal/operators/skipWhile.d.ts +5 -0
  125. package/dist/_types/rxjs/dist/types/internal/operators/startWith.d.ts +7 -0
  126. package/dist/_types/rxjs/dist/types/internal/operators/subscribeOn.d.ts +62 -0
  127. package/dist/_types/rxjs/dist/types/internal/operators/switchAll.d.ts +61 -0
  128. package/dist/_types/rxjs/dist/types/internal/operators/switchMap.d.ts +7 -0
  129. package/dist/_types/rxjs/dist/types/internal/operators/switchMapTo.d.ts +8 -0
  130. package/dist/_types/rxjs/dist/types/internal/operators/switchScan.d.ts +20 -0
  131. package/dist/_types/rxjs/dist/types/internal/operators/take.d.ts +45 -0
  132. package/dist/_types/rxjs/dist/types/internal/operators/takeLast.d.ts +42 -0
  133. package/dist/_types/rxjs/dist/types/internal/operators/takeUntil.d.ts +42 -0
  134. package/dist/_types/rxjs/dist/types/internal/operators/takeWhile.d.ts +8 -0
  135. package/dist/_types/rxjs/dist/types/internal/operators/tap.d.ts +72 -0
  136. package/dist/_types/rxjs/dist/types/internal/operators/throttle.d.ts +78 -0
  137. package/dist/_types/rxjs/dist/types/internal/operators/throttleTime.d.ts +53 -0
  138. package/dist/_types/rxjs/dist/types/internal/operators/throwIfEmpty.d.ts +39 -0
  139. package/dist/_types/rxjs/dist/types/internal/operators/timeInterval.d.ts +50 -0
  140. package/dist/_types/rxjs/dist/types/internal/operators/timeout.d.ts +257 -0
  141. package/dist/_types/rxjs/dist/types/internal/operators/timeoutWith.d.ts +8 -0
  142. package/dist/_types/rxjs/dist/types/internal/operators/timestamp.d.ts +35 -0
  143. package/dist/_types/rxjs/dist/types/internal/operators/toArray.d.ts +33 -0
  144. package/dist/_types/rxjs/dist/types/internal/operators/window.d.ts +48 -0
  145. package/dist/_types/rxjs/dist/types/internal/operators/windowCount.d.ts +66 -0
  146. package/dist/_types/rxjs/dist/types/internal/operators/windowTime.d.ts +6 -0
  147. package/dist/_types/rxjs/dist/types/internal/operators/windowToggle.d.ts +51 -0
  148. package/dist/_types/rxjs/dist/types/internal/operators/windowWhen.d.ts +48 -0
  149. package/dist/_types/rxjs/dist/types/internal/operators/withLatestFrom.d.ts +4 -0
  150. package/dist/_types/rxjs/dist/types/internal/operators/zipAll.d.ts +14 -0
  151. package/dist/_types/rxjs/dist/types/internal/operators/zipWith.d.ts +26 -0
  152. package/dist/_types/rxjs/dist/types/internal/scheduled/scheduled.d.ts +15 -0
  153. package/dist/_types/rxjs/dist/types/internal/scheduler/Action.d.ts +32 -0
  154. package/dist/_types/rxjs/dist/types/internal/scheduler/AnimationFrameScheduler.d.ts +6 -0
  155. package/dist/_types/rxjs/dist/types/internal/scheduler/AsapScheduler.d.ts +6 -0
  156. package/dist/_types/rxjs/dist/types/internal/scheduler/AsyncAction.d.ts +25 -0
  157. package/dist/_types/rxjs/dist/types/internal/scheduler/AsyncScheduler.d.ts +9 -0
  158. package/dist/_types/rxjs/dist/types/internal/scheduler/QueueScheduler.d.ts +4 -0
  159. package/dist/_types/rxjs/dist/types/internal/scheduler/VirtualTimeScheduler.d.ts +49 -0
  160. package/dist/_types/rxjs/dist/types/internal/scheduler/animationFrame.d.ts +38 -0
  161. package/dist/_types/rxjs/dist/types/internal/scheduler/asap.d.ts +41 -0
  162. package/dist/_types/rxjs/dist/types/internal/scheduler/async.d.ts +53 -0
  163. package/dist/_types/rxjs/dist/types/internal/scheduler/queue.d.ts +69 -0
  164. package/dist/_types/rxjs/dist/types/internal/scheduler/timerHandle.d.ts +2 -0
  165. package/dist/_types/rxjs/dist/types/internal/symbol/observable.d.ts +8 -0
  166. package/dist/_types/rxjs/dist/types/internal/types.d.ts +301 -0
  167. package/dist/_types/rxjs/dist/types/internal/util/ArgumentOutOfRangeError.d.ts +21 -0
  168. package/dist/_types/rxjs/dist/types/internal/util/EmptyError.d.ts +23 -0
  169. package/dist/_types/rxjs/dist/types/internal/util/NotFoundError.d.ts +19 -0
  170. package/dist/_types/rxjs/dist/types/internal/util/ObjectUnsubscribedError.d.ts +20 -0
  171. package/dist/_types/rxjs/dist/types/internal/util/SequenceError.d.ts +19 -0
  172. package/dist/_types/rxjs/dist/types/internal/util/UnsubscriptionError.d.ts +16 -0
  173. package/dist/_types/rxjs/dist/types/internal/util/identity.d.ts +44 -0
  174. package/dist/_types/rxjs/dist/types/internal/util/isObservable.d.ts +8 -0
  175. package/dist/_types/rxjs/dist/types/internal/util/noop.d.ts +2 -0
  176. package/dist/_types/rxjs/dist/types/internal/util/pipe.d.ts +14 -0
  177. package/dist/index.cjs +3 -228
  178. package/dist/index.cjs.map +1 -1
  179. package/dist/index.js +1 -226
  180. package/dist/index.js.map +1 -1
  181. package/dist/interceptors/request-tracking.interceptor.d.ts +1 -1
  182. package/dist/interceptors/streaming.interceptor.d.ts +1 -1
  183. package/dist/interceptors/tracing.interceptor.d.ts +1 -1
  184. package/package.json +8 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @mastra/nestjs
2
2
 
3
+ ## 0.1.8-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`df1947a`](https://github.com/mastra-ai/mastra/commit/df1947affa40f742067542251fac7ca759492ef4), [`ee59b74`](https://github.com/mastra-ai/mastra/commit/ee59b743ce73ad11784b4d9c6fbba8568edee1c8), [`a97b1a0`](https://github.com/mastra-ai/mastra/commit/a97b1a0abaed83946c3519d1e0f680d0815b8a67)]:
8
+ - @mastra/core@1.37.0-alpha.2
9
+ - @mastra/server@1.37.0-alpha.2
10
+
3
11
  ## 0.1.8-alpha.1
4
12
 
5
13
  ### Patch Changes
@@ -0,0 +1,173 @@
1
+ /// <reference path="operators/index.d.ts" />
2
+ /// <reference path="testing/index.d.ts" />
3
+ export { Observable } from './internal/Observable';
4
+ export { ConnectableObservable } from './internal/observable/ConnectableObservable';
5
+ export { GroupedObservable } from './internal/operators/groupBy';
6
+ export { Operator } from './internal/Operator';
7
+ export { observable } from './internal/symbol/observable';
8
+ export { animationFrames } from './internal/observable/dom/animationFrames';
9
+ export { Subject } from './internal/Subject';
10
+ export { BehaviorSubject } from './internal/BehaviorSubject';
11
+ export { ReplaySubject } from './internal/ReplaySubject';
12
+ export { AsyncSubject } from './internal/AsyncSubject';
13
+ export { asap, asapScheduler } from './internal/scheduler/asap';
14
+ export { async, asyncScheduler } from './internal/scheduler/async';
15
+ export { queue, queueScheduler } from './internal/scheduler/queue';
16
+ export { animationFrame, animationFrameScheduler } from './internal/scheduler/animationFrame';
17
+ export { VirtualTimeScheduler, VirtualAction } from './internal/scheduler/VirtualTimeScheduler';
18
+ export { Scheduler } from './internal/Scheduler';
19
+ export { Subscription } from './internal/Subscription';
20
+ export { Subscriber } from './internal/Subscriber';
21
+ export { Notification, NotificationKind } from './internal/Notification';
22
+ export { pipe } from './internal/util/pipe';
23
+ export { noop } from './internal/util/noop';
24
+ export { identity } from './internal/util/identity';
25
+ export { isObservable } from './internal/util/isObservable';
26
+ export { lastValueFrom } from './internal/lastValueFrom';
27
+ export { firstValueFrom } from './internal/firstValueFrom';
28
+ export { ArgumentOutOfRangeError } from './internal/util/ArgumentOutOfRangeError';
29
+ export { EmptyError } from './internal/util/EmptyError';
30
+ export { NotFoundError } from './internal/util/NotFoundError';
31
+ export { ObjectUnsubscribedError } from './internal/util/ObjectUnsubscribedError';
32
+ export { SequenceError } from './internal/util/SequenceError';
33
+ export { TimeoutError } from './internal/operators/timeout';
34
+ export { UnsubscriptionError } from './internal/util/UnsubscriptionError';
35
+ export { bindCallback } from './internal/observable/bindCallback';
36
+ export { bindNodeCallback } from './internal/observable/bindNodeCallback';
37
+ export { combineLatest } from './internal/observable/combineLatest';
38
+ export { concat } from './internal/observable/concat';
39
+ export { connectable } from './internal/observable/connectable';
40
+ export { defer } from './internal/observable/defer';
41
+ export { empty } from './internal/observable/empty';
42
+ export { forkJoin } from './internal/observable/forkJoin';
43
+ export { from } from './internal/observable/from';
44
+ export { fromEvent } from './internal/observable/fromEvent';
45
+ export { fromEventPattern } from './internal/observable/fromEventPattern';
46
+ export { generate } from './internal/observable/generate';
47
+ export { iif } from './internal/observable/iif';
48
+ export { interval } from './internal/observable/interval';
49
+ export { merge } from './internal/observable/merge';
50
+ export { never } from './internal/observable/never';
51
+ export { of } from './internal/observable/of';
52
+ export { onErrorResumeNext } from './internal/observable/onErrorResumeNext';
53
+ export { pairs } from './internal/observable/pairs';
54
+ export { partition } from './internal/observable/partition';
55
+ export { race } from './internal/observable/race';
56
+ export { range } from './internal/observable/range';
57
+ export { throwError } from './internal/observable/throwError';
58
+ export { timer } from './internal/observable/timer';
59
+ export { using } from './internal/observable/using';
60
+ export { zip } from './internal/observable/zip';
61
+ export { scheduled } from './internal/scheduled/scheduled';
62
+ export { EMPTY } from './internal/observable/empty';
63
+ export { NEVER } from './internal/observable/never';
64
+ export * from './internal/types';
65
+ export { config, GlobalConfig } from './internal/config';
66
+ export { audit } from './internal/operators/audit';
67
+ export { auditTime } from './internal/operators/auditTime';
68
+ export { buffer } from './internal/operators/buffer';
69
+ export { bufferCount } from './internal/operators/bufferCount';
70
+ export { bufferTime } from './internal/operators/bufferTime';
71
+ export { bufferToggle } from './internal/operators/bufferToggle';
72
+ export { bufferWhen } from './internal/operators/bufferWhen';
73
+ export { catchError } from './internal/operators/catchError';
74
+ export { combineAll } from './internal/operators/combineAll';
75
+ export { combineLatestAll } from './internal/operators/combineLatestAll';
76
+ export { combineLatestWith } from './internal/operators/combineLatestWith';
77
+ export { concatAll } from './internal/operators/concatAll';
78
+ export { concatMap } from './internal/operators/concatMap';
79
+ export { concatMapTo } from './internal/operators/concatMapTo';
80
+ export { concatWith } from './internal/operators/concatWith';
81
+ export { connect, ConnectConfig } from './internal/operators/connect';
82
+ export { count } from './internal/operators/count';
83
+ export { debounce } from './internal/operators/debounce';
84
+ export { debounceTime } from './internal/operators/debounceTime';
85
+ export { defaultIfEmpty } from './internal/operators/defaultIfEmpty';
86
+ export { delay } from './internal/operators/delay';
87
+ export { delayWhen } from './internal/operators/delayWhen';
88
+ export { dematerialize } from './internal/operators/dematerialize';
89
+ export { distinct } from './internal/operators/distinct';
90
+ export { distinctUntilChanged } from './internal/operators/distinctUntilChanged';
91
+ export { distinctUntilKeyChanged } from './internal/operators/distinctUntilKeyChanged';
92
+ export { elementAt } from './internal/operators/elementAt';
93
+ export { endWith } from './internal/operators/endWith';
94
+ export { every } from './internal/operators/every';
95
+ export { exhaust } from './internal/operators/exhaust';
96
+ export { exhaustAll } from './internal/operators/exhaustAll';
97
+ export { exhaustMap } from './internal/operators/exhaustMap';
98
+ export { expand } from './internal/operators/expand';
99
+ export { filter } from './internal/operators/filter';
100
+ export { finalize } from './internal/operators/finalize';
101
+ export { find } from './internal/operators/find';
102
+ export { findIndex } from './internal/operators/findIndex';
103
+ export { first } from './internal/operators/first';
104
+ export { groupBy, BasicGroupByOptions, GroupByOptionsWithElement } from './internal/operators/groupBy';
105
+ export { ignoreElements } from './internal/operators/ignoreElements';
106
+ export { isEmpty } from './internal/operators/isEmpty';
107
+ export { last } from './internal/operators/last';
108
+ export { map } from './internal/operators/map';
109
+ export { mapTo } from './internal/operators/mapTo';
110
+ export { materialize } from './internal/operators/materialize';
111
+ export { max } from './internal/operators/max';
112
+ export { mergeAll } from './internal/operators/mergeAll';
113
+ export { flatMap } from './internal/operators/flatMap';
114
+ export { mergeMap } from './internal/operators/mergeMap';
115
+ export { mergeMapTo } from './internal/operators/mergeMapTo';
116
+ export { mergeScan } from './internal/operators/mergeScan';
117
+ export { mergeWith } from './internal/operators/mergeWith';
118
+ export { min } from './internal/operators/min';
119
+ export { multicast } from './internal/operators/multicast';
120
+ export { observeOn } from './internal/operators/observeOn';
121
+ export { onErrorResumeNextWith } from './internal/operators/onErrorResumeNextWith';
122
+ export { pairwise } from './internal/operators/pairwise';
123
+ export { pluck } from './internal/operators/pluck';
124
+ export { publish } from './internal/operators/publish';
125
+ export { publishBehavior } from './internal/operators/publishBehavior';
126
+ export { publishLast } from './internal/operators/publishLast';
127
+ export { publishReplay } from './internal/operators/publishReplay';
128
+ export { raceWith } from './internal/operators/raceWith';
129
+ export { reduce } from './internal/operators/reduce';
130
+ export { repeat, RepeatConfig } from './internal/operators/repeat';
131
+ export { repeatWhen } from './internal/operators/repeatWhen';
132
+ export { retry, RetryConfig } from './internal/operators/retry';
133
+ export { retryWhen } from './internal/operators/retryWhen';
134
+ export { refCount } from './internal/operators/refCount';
135
+ export { sample } from './internal/operators/sample';
136
+ export { sampleTime } from './internal/operators/sampleTime';
137
+ export { scan } from './internal/operators/scan';
138
+ export { sequenceEqual } from './internal/operators/sequenceEqual';
139
+ export { share, ShareConfig } from './internal/operators/share';
140
+ export { shareReplay, ShareReplayConfig } from './internal/operators/shareReplay';
141
+ export { single } from './internal/operators/single';
142
+ export { skip } from './internal/operators/skip';
143
+ export { skipLast } from './internal/operators/skipLast';
144
+ export { skipUntil } from './internal/operators/skipUntil';
145
+ export { skipWhile } from './internal/operators/skipWhile';
146
+ export { startWith } from './internal/operators/startWith';
147
+ export { subscribeOn } from './internal/operators/subscribeOn';
148
+ export { switchAll } from './internal/operators/switchAll';
149
+ export { switchMap } from './internal/operators/switchMap';
150
+ export { switchMapTo } from './internal/operators/switchMapTo';
151
+ export { switchScan } from './internal/operators/switchScan';
152
+ export { take } from './internal/operators/take';
153
+ export { takeLast } from './internal/operators/takeLast';
154
+ export { takeUntil } from './internal/operators/takeUntil';
155
+ export { takeWhile } from './internal/operators/takeWhile';
156
+ export { tap, TapObserver } from './internal/operators/tap';
157
+ export { throttle, ThrottleConfig } from './internal/operators/throttle';
158
+ export { throttleTime } from './internal/operators/throttleTime';
159
+ export { throwIfEmpty } from './internal/operators/throwIfEmpty';
160
+ export { timeInterval } from './internal/operators/timeInterval';
161
+ export { timeout, TimeoutConfig, TimeoutInfo } from './internal/operators/timeout';
162
+ export { timeoutWith } from './internal/operators/timeoutWith';
163
+ export { timestamp } from './internal/operators/timestamp';
164
+ export { toArray } from './internal/operators/toArray';
165
+ export { window } from './internal/operators/window';
166
+ export { windowCount } from './internal/operators/windowCount';
167
+ export { windowTime } from './internal/operators/windowTime';
168
+ export { windowToggle } from './internal/operators/windowToggle';
169
+ export { windowWhen } from './internal/operators/windowWhen';
170
+ export { withLatestFrom } from './internal/operators/withLatestFrom';
171
+ export { zipAll } from './internal/operators/zipAll';
172
+ export { zipWith } from './internal/operators/zipWith';
173
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ declare const anyCatcherSymbol: unique symbol;
2
+ /**
3
+ * This is just a type that we're using to identify `any` being passed to
4
+ * function overloads. This is used because of situations like {@link forkJoin},
5
+ * where it could return an `Observable<T[]>` or an `Observable<{ [key: K]: T }>`,
6
+ * so `forkJoin(any)` would mean we need to return `Observable<unknown>`.
7
+ */
8
+ export declare type AnyCatcher = typeof anyCatcherSymbol;
9
+ export {};
10
+ //# sourceMappingURL=AnyCatcher.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { Subject } from './Subject';
2
+ /**
3
+ * A variant of Subject that only emits a value when it completes. It will emit
4
+ * its latest value to all its observers on completion.
5
+ *
6
+ * @class AsyncSubject<T>
7
+ */
8
+ export declare class AsyncSubject<T> extends Subject<T> {
9
+ private _value;
10
+ private _hasValue;
11
+ private _isComplete;
12
+ next(value: T): void;
13
+ complete(): void;
14
+ }
15
+ //# sourceMappingURL=AsyncSubject.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { Subject } from './Subject';
2
+ /**
3
+ * A variant of Subject that requires an initial value and emits its current
4
+ * value whenever it is subscribed to.
5
+ *
6
+ * @class BehaviorSubject<T>
7
+ */
8
+ export declare class BehaviorSubject<T> extends Subject<T> {
9
+ private _value;
10
+ constructor(_value: T);
11
+ get value(): T;
12
+ getValue(): T;
13
+ next(value: T): void;
14
+ }
15
+ //# sourceMappingURL=BehaviorSubject.d.ts.map
@@ -0,0 +1,180 @@
1
+ import { PartialObserver, ObservableNotification, CompleteNotification, NextNotification, ErrorNotification } from './types';
2
+ import { Observable } from './Observable';
3
+ /**
4
+ * @deprecated Use a string literal instead. `NotificationKind` will be replaced with a type alias in v8.
5
+ * It will not be replaced with a const enum as those are not compatible with isolated modules.
6
+ */
7
+ export declare enum NotificationKind {
8
+ NEXT = "N",
9
+ ERROR = "E",
10
+ COMPLETE = "C"
11
+ }
12
+ /**
13
+ * Represents a push-based event or value that an {@link Observable} can emit.
14
+ * This class is particularly useful for operators that manage notifications,
15
+ * like {@link materialize}, {@link dematerialize}, {@link observeOn}, and
16
+ * others. Besides wrapping the actual delivered value, it also annotates it
17
+ * with metadata of, for instance, what type of push message it is (`next`,
18
+ * `error`, or `complete`).
19
+ *
20
+ * @see {@link materialize}
21
+ * @see {@link dematerialize}
22
+ * @see {@link observeOn}
23
+ * @deprecated It is NOT recommended to create instances of `Notification` directly.
24
+ * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}.
25
+ * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`.
26
+ * Will be removed in v8.
27
+ */
28
+ export declare class Notification<T> {
29
+ readonly kind: 'N' | 'E' | 'C';
30
+ readonly value?: T | undefined;
31
+ readonly error?: any;
32
+ /**
33
+ * A value signifying that the notification will "next" if observed. In truth,
34
+ * This is really synonymous with just checking `kind === "N"`.
35
+ * @deprecated Will be removed in v8. Instead, just check to see if the value of `kind` is `"N"`.
36
+ */
37
+ readonly hasValue: boolean;
38
+ /**
39
+ * Creates a "Next" notification object.
40
+ * @param kind Always `'N'`
41
+ * @param value The value to notify with if observed.
42
+ * @deprecated Internal implementation detail. Use {@link Notification#createNext createNext} instead.
43
+ */
44
+ constructor(kind: 'N', value?: T);
45
+ /**
46
+ * Creates an "Error" notification object.
47
+ * @param kind Always `'E'`
48
+ * @param value Always `undefined`
49
+ * @param error The error to notify with if observed.
50
+ * @deprecated Internal implementation detail. Use {@link Notification#createError createError} instead.
51
+ */
52
+ constructor(kind: 'E', value: undefined, error: any);
53
+ /**
54
+ * Creates a "completion" notification object.
55
+ * @param kind Always `'C'`
56
+ * @deprecated Internal implementation detail. Use {@link Notification#createComplete createComplete} instead.
57
+ */
58
+ constructor(kind: 'C');
59
+ /**
60
+ * Executes the appropriate handler on a passed `observer` given the `kind` of notification.
61
+ * If the handler is missing it will do nothing. Even if the notification is an error, if
62
+ * there is no error handler on the observer, an error will not be thrown, it will noop.
63
+ * @param observer The observer to notify.
64
+ */
65
+ observe(observer: PartialObserver<T>): void;
66
+ /**
67
+ * Executes a notification on the appropriate handler from a list provided.
68
+ * If a handler is missing for the kind of notification, nothing is called
69
+ * and no error is thrown, it will be a noop.
70
+ * @param next A next handler
71
+ * @param error An error handler
72
+ * @param complete A complete handler
73
+ * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8.
74
+ */
75
+ do(next: (value: T) => void, error: (err: any) => void, complete: () => void): void;
76
+ /**
77
+ * Executes a notification on the appropriate handler from a list provided.
78
+ * If a handler is missing for the kind of notification, nothing is called
79
+ * and no error is thrown, it will be a noop.
80
+ * @param next A next handler
81
+ * @param error An error handler
82
+ * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8.
83
+ */
84
+ do(next: (value: T) => void, error: (err: any) => void): void;
85
+ /**
86
+ * Executes the next handler if the Notification is of `kind` `"N"`. Otherwise
87
+ * this will not error, and it will be a noop.
88
+ * @param next The next handler
89
+ * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8.
90
+ */
91
+ do(next: (value: T) => void): void;
92
+ /**
93
+ * Executes a notification on the appropriate handler from a list provided.
94
+ * If a handler is missing for the kind of notification, nothing is called
95
+ * and no error is thrown, it will be a noop.
96
+ * @param next A next handler
97
+ * @param error An error handler
98
+ * @param complete A complete handler
99
+ * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8.
100
+ */
101
+ accept(next: (value: T) => void, error: (err: any) => void, complete: () => void): void;
102
+ /**
103
+ * Executes a notification on the appropriate handler from a list provided.
104
+ * If a handler is missing for the kind of notification, nothing is called
105
+ * and no error is thrown, it will be a noop.
106
+ * @param next A next handler
107
+ * @param error An error handler
108
+ * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8.
109
+ */
110
+ accept(next: (value: T) => void, error: (err: any) => void): void;
111
+ /**
112
+ * Executes the next handler if the Notification is of `kind` `"N"`. Otherwise
113
+ * this will not error, and it will be a noop.
114
+ * @param next The next handler
115
+ * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8.
116
+ */
117
+ accept(next: (value: T) => void): void;
118
+ /**
119
+ * Executes the appropriate handler on a passed `observer` given the `kind` of notification.
120
+ * If the handler is missing it will do nothing. Even if the notification is an error, if
121
+ * there is no error handler on the observer, an error will not be thrown, it will noop.
122
+ * @param observer The observer to notify.
123
+ * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8.
124
+ */
125
+ accept(observer: PartialObserver<T>): void;
126
+ /**
127
+ * Returns a simple Observable that just delivers the notification represented
128
+ * by this Notification instance.
129
+ *
130
+ * @deprecated Will be removed in v8. To convert a `Notification` to an {@link Observable},
131
+ * use {@link of} and {@link dematerialize}: `of(notification).pipe(dematerialize())`.
132
+ */
133
+ toObservable(): Observable<T>;
134
+ private static completeNotification;
135
+ /**
136
+ * A shortcut to create a Notification instance of the type `next` from a
137
+ * given value.
138
+ * @param {T} value The `next` value.
139
+ * @return {Notification<T>} The "next" Notification representing the
140
+ * argument.
141
+ * @nocollapse
142
+ * @deprecated It is NOT recommended to create instances of `Notification` directly.
143
+ * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}.
144
+ * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`.
145
+ * Will be removed in v8.
146
+ */
147
+ static createNext<T>(value: T): Notification<T> & NextNotification<T>;
148
+ /**
149
+ * A shortcut to create a Notification instance of the type `error` from a
150
+ * given error.
151
+ * @param {any} [err] The `error` error.
152
+ * @return {Notification<T>} The "error" Notification representing the
153
+ * argument.
154
+ * @nocollapse
155
+ * @deprecated It is NOT recommended to create instances of `Notification` directly.
156
+ * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}.
157
+ * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`.
158
+ * Will be removed in v8.
159
+ */
160
+ static createError(err?: any): Notification<never> & ErrorNotification;
161
+ /**
162
+ * A shortcut to create a Notification instance of the type `complete`.
163
+ * @return {Notification<any>} The valueless "complete" Notification.
164
+ * @nocollapse
165
+ * @deprecated It is NOT recommended to create instances of `Notification` directly.
166
+ * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}.
167
+ * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`.
168
+ * Will be removed in v8.
169
+ */
170
+ static createComplete(): Notification<never> & CompleteNotification;
171
+ }
172
+ /**
173
+ * Executes the appropriate handler on a passed `observer` given the `kind` of notification.
174
+ * If the handler is missing it will do nothing. Even if the notification is an error, if
175
+ * there is no error handler on the observer, an error will not be thrown, it will noop.
176
+ * @param notification The notification object to observe.
177
+ * @param observer The observer to notify.
178
+ */
179
+ export declare function observeNotification<T>(notification: ObservableNotification<T>, observer: PartialObserver<T>): void;
180
+ //# sourceMappingURL=Notification.d.ts.map
@@ -0,0 +1,128 @@
1
+ import { Operator } from './Operator';
2
+ import { Subscriber } from './Subscriber';
3
+ import { Subscription } from './Subscription';
4
+ import { TeardownLogic, OperatorFunction, Subscribable, Observer } from './types';
5
+ /**
6
+ * A representation of any set of values over any amount of time. This is the most basic building block
7
+ * of RxJS.
8
+ *
9
+ * @class Observable<T>
10
+ */
11
+ export declare class Observable<T> implements Subscribable<T> {
12
+ /**
13
+ * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
14
+ */
15
+ source: Observable<any> | undefined;
16
+ /**
17
+ * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
18
+ */
19
+ operator: Operator<any, T> | undefined;
20
+ /**
21
+ * @constructor
22
+ * @param {Function} subscribe the function that is called when the Observable is
23
+ * initially subscribed to. This function is given a Subscriber, to which new values
24
+ * can be `next`ed, or an `error` method can be called to raise an error, or
25
+ * `complete` can be called to notify of a successful completion.
26
+ */
27
+ constructor(subscribe?: (this: Observable<T>, subscriber: Subscriber<T>) => TeardownLogic);
28
+ /**
29
+ * Creates a new Observable by calling the Observable constructor
30
+ * @owner Observable
31
+ * @method create
32
+ * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor
33
+ * @return {Observable} a new observable
34
+ * @nocollapse
35
+ * @deprecated Use `new Observable()` instead. Will be removed in v8.
36
+ */
37
+ static create: (...args: any[]) => any;
38
+ /**
39
+ * Creates a new Observable, with this Observable instance as the source, and the passed
40
+ * operator defined as the new observable's operator.
41
+ * @method lift
42
+ * @param operator the operator defining the operation to take on the observable
43
+ * @return a new observable with the Operator applied
44
+ * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
45
+ * If you have implemented an operator using `lift`, it is recommended that you create an
46
+ * operator by simply returning `new Observable()` directly. See "Creating new operators from
47
+ * scratch" section here: https://rxjs.dev/guide/operators
48
+ */
49
+ lift<R>(operator?: Operator<T, R>): Observable<R>;
50
+ subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void)): Subscription;
51
+ /** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */
52
+ subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;
53
+ /**
54
+ * Used as a NON-CANCELLABLE means of subscribing to an observable, for use with
55
+ * APIs that expect promises, like `async/await`. You cannot unsubscribe from this.
56
+ *
57
+ * **WARNING**: Only use this with observables you *know* will complete. If the source
58
+ * observable does not complete, you will end up with a promise that is hung up, and
59
+ * potentially all of the state of an async function hanging out in memory. To avoid
60
+ * this situation, look into adding something like {@link timeout}, {@link take},
61
+ * {@link takeWhile}, or {@link takeUntil} amongst others.
62
+ *
63
+ * #### Example
64
+ *
65
+ * ```ts
66
+ * import { interval, take } from 'rxjs';
67
+ *
68
+ * const source$ = interval(1000).pipe(take(4));
69
+ *
70
+ * async function getTotal() {
71
+ * let total = 0;
72
+ *
73
+ * await source$.forEach(value => {
74
+ * total += value;
75
+ * console.log('observable -> ' + value);
76
+ * });
77
+ *
78
+ * return total;
79
+ * }
80
+ *
81
+ * getTotal().then(
82
+ * total => console.log('Total: ' + total)
83
+ * );
84
+ *
85
+ * // Expected:
86
+ * // 'observable -> 0'
87
+ * // 'observable -> 1'
88
+ * // 'observable -> 2'
89
+ * // 'observable -> 3'
90
+ * // 'Total: 6'
91
+ * ```
92
+ *
93
+ * @param next a handler for each value emitted by the observable
94
+ * @return a promise that either resolves on observable completion or
95
+ * rejects with the handled error
96
+ */
97
+ forEach(next: (value: T) => void): Promise<void>;
98
+ /**
99
+ * @param next a handler for each value emitted by the observable
100
+ * @param promiseCtor a constructor function used to instantiate the Promise
101
+ * @return a promise that either resolves on observable completion or
102
+ * rejects with the handled error
103
+ * @deprecated Passing a Promise constructor will no longer be available
104
+ * in upcoming versions of RxJS. This is because it adds weight to the library, for very
105
+ * little benefit. If you need this functionality, it is recommended that you either
106
+ * polyfill Promise, or you create an adapter to convert the returned native promise
107
+ * to whatever promise implementation you wanted. Will be removed in v8.
108
+ */
109
+ forEach(next: (value: T) => void, promiseCtor: PromiseConstructorLike): Promise<void>;
110
+ pipe(): Observable<T>;
111
+ pipe<A>(op1: OperatorFunction<T, A>): Observable<A>;
112
+ pipe<A, B>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>): Observable<B>;
113
+ pipe<A, B, C>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>): Observable<C>;
114
+ pipe<A, B, C, D>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>): Observable<D>;
115
+ pipe<A, B, C, D, E>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>): Observable<E>;
116
+ pipe<A, B, C, D, E, F>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>): Observable<F>;
117
+ pipe<A, B, C, D, E, F, G>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>): Observable<G>;
118
+ pipe<A, B, C, D, E, F, G, H>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>): Observable<H>;
119
+ pipe<A, B, C, D, E, F, G, H, I>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>, op9: OperatorFunction<H, I>): Observable<I>;
120
+ pipe<A, B, C, D, E, F, G, H, I>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>, op9: OperatorFunction<H, I>, ...operations: OperatorFunction<any, any>[]): Observable<unknown>;
121
+ /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */
122
+ toPromise(): Promise<T | undefined>;
123
+ /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */
124
+ toPromise(PromiseCtor: typeof Promise): Promise<T | undefined>;
125
+ /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */
126
+ toPromise(PromiseCtor: PromiseConstructorLike): Promise<T | undefined>;
127
+ }
128
+ //# sourceMappingURL=Observable.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { Subscriber } from './Subscriber';
2
+ import { TeardownLogic } from './types';
3
+ /***
4
+ * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
5
+ */
6
+ export interface Operator<T, R> {
7
+ call(subscriber: Subscriber<R>, source: any): TeardownLogic;
8
+ }
9
+ //# sourceMappingURL=Operator.d.ts.map
@@ -0,0 +1,49 @@
1
+ import { Subject } from './Subject';
2
+ import { TimestampProvider } from './types';
3
+ /**
4
+ * A variant of {@link Subject} that "replays" old values to new subscribers by emitting them when they first subscribe.
5
+ *
6
+ * `ReplaySubject` has an internal buffer that will store a specified number of values that it has observed. Like `Subject`,
7
+ * `ReplaySubject` "observes" values by having them passed to its `next` method. When it observes a value, it will store that
8
+ * value for a time determined by the configuration of the `ReplaySubject`, as passed to its constructor.
9
+ *
10
+ * When a new subscriber subscribes to the `ReplaySubject` instance, it will synchronously emit all values in its buffer in
11
+ * a First-In-First-Out (FIFO) manner. The `ReplaySubject` will also complete, if it has observed completion; and it will
12
+ * error if it has observed an error.
13
+ *
14
+ * There are two main configuration items to be concerned with:
15
+ *
16
+ * 1. `bufferSize` - This will determine how many items are stored in the buffer, defaults to infinite.
17
+ * 2. `windowTime` - The amount of time to hold a value in the buffer before removing it from the buffer.
18
+ *
19
+ * Both configurations may exist simultaneously. So if you would like to buffer a maximum of 3 values, as long as the values
20
+ * are less than 2 seconds old, you could do so with a `new ReplaySubject(3, 2000)`.
21
+ *
22
+ * ### Differences with BehaviorSubject
23
+ *
24
+ * `BehaviorSubject` is similar to `new ReplaySubject(1)`, with a couple of exceptions:
25
+ *
26
+ * 1. `BehaviorSubject` comes "primed" with a single value upon construction.
27
+ * 2. `ReplaySubject` will replay values, even after observing an error, where `BehaviorSubject` will not.
28
+ *
29
+ * @see {@link Subject}
30
+ * @see {@link BehaviorSubject}
31
+ * @see {@link shareReplay}
32
+ */
33
+ export declare class ReplaySubject<T> extends Subject<T> {
34
+ private _bufferSize;
35
+ private _windowTime;
36
+ private _timestampProvider;
37
+ private _buffer;
38
+ private _infiniteTimeWindow;
39
+ /**
40
+ * @param bufferSize The size of the buffer to replay on subscription
41
+ * @param windowTime The amount of time the buffered items will stay buffered
42
+ * @param timestampProvider An object with a `now()` method that provides the current timestamp. This is used to
43
+ * calculate the amount of time something has been buffered.
44
+ */
45
+ constructor(_bufferSize?: number, _windowTime?: number, _timestampProvider?: TimestampProvider);
46
+ next(value: T): void;
47
+ private _trimBuffer;
48
+ }
49
+ //# sourceMappingURL=ReplaySubject.d.ts.map