@mastra/nestjs 0.1.8-alpha.0 → 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 +16 -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 +9 -8
@@ -0,0 +1,5 @@
1
+ import { OperatorFunction } from '../types';
2
+ export declare function reduce<V, A = V>(accumulator: (acc: A | V, value: V, index: number) => A): OperatorFunction<V, V | A>;
3
+ export declare function reduce<V, A>(accumulator: (acc: A, value: V, index: number) => A, seed: A): OperatorFunction<V, A>;
4
+ export declare function reduce<V, A, S = A>(accumulator: (acc: A | S, value: V, index: number) => A, seed: S): OperatorFunction<V, A>;
5
+ //# sourceMappingURL=reduce.d.ts.map
@@ -0,0 +1,61 @@
1
+ import { MonoTypeOperatorFunction } from '../types';
2
+ /**
3
+ * Make a {@link ConnectableObservable} behave like a ordinary observable and automates the way
4
+ * you can connect to it.
5
+ *
6
+ * Internally it counts the subscriptions to the observable and subscribes (only once) to the source if
7
+ * the number of subscriptions is larger than 0. If the number of subscriptions is smaller than 1, it
8
+ * unsubscribes from the source. This way you can make sure that everything before the *published*
9
+ * refCount has only a single subscription independently of the number of subscribers to the target
10
+ * observable.
11
+ *
12
+ * Note that using the {@link share} operator is exactly the same as using the `multicast(() => new Subject())` operator
13
+ * (making the observable hot) and the *refCount* operator in a sequence.
14
+ *
15
+ * ![](refCount.png)
16
+ *
17
+ * ## Example
18
+ *
19
+ * In the following example there are two intervals turned into connectable observables
20
+ * by using the *publish* operator. The first one uses the *refCount* operator, the
21
+ * second one does not use it. You will notice that a connectable observable does nothing
22
+ * until you call its connect function.
23
+ *
24
+ * ```ts
25
+ * import { interval, tap, publish, refCount } from 'rxjs';
26
+ *
27
+ * // Turn the interval observable into a ConnectableObservable (hot)
28
+ * const refCountInterval = interval(400).pipe(
29
+ * tap(num => console.log(`refCount ${ num }`)),
30
+ * publish(),
31
+ * refCount()
32
+ * );
33
+ *
34
+ * const publishedInterval = interval(400).pipe(
35
+ * tap(num => console.log(`publish ${ num }`)),
36
+ * publish()
37
+ * );
38
+ *
39
+ * refCountInterval.subscribe();
40
+ * refCountInterval.subscribe();
41
+ * // 'refCount 0' -----> 'refCount 1' -----> etc
42
+ * // All subscriptions will receive the same value and the tap (and
43
+ * // every other operator) before the `publish` operator will be executed
44
+ * // only once per event independently of the number of subscriptions.
45
+ *
46
+ * publishedInterval.subscribe();
47
+ * // Nothing happens until you call .connect() on the observable.
48
+ * ```
49
+ *
50
+ * @return A function that returns an Observable that automates the connection
51
+ * to ConnectableObservable.
52
+ * @see {@link ConnectableObservable}
53
+ * @see {@link share}
54
+ * @see {@link publish}
55
+ * @deprecated Replaced with the {@link share} operator. How `share` is used
56
+ * will depend on the connectable observable you created just prior to the
57
+ * `refCount` operator.
58
+ * Details: https://rxjs.dev/deprecations/multicasting
59
+ */
60
+ export declare function refCount<T>(): MonoTypeOperatorFunction<T>;
61
+ //# sourceMappingURL=refCount.d.ts.map
@@ -0,0 +1,108 @@
1
+ import { MonoTypeOperatorFunction, ObservableInput } from '../types';
2
+ export interface RepeatConfig {
3
+ /**
4
+ * The number of times to repeat the source. Defaults to `Infinity`.
5
+ */
6
+ count?: number;
7
+ /**
8
+ * If a `number`, will delay the repeat of the source by that number of milliseconds.
9
+ * If a function, it will provide the number of times the source has been subscribed to,
10
+ * and the return value should be a valid observable input that will notify when the source
11
+ * should be repeated. If the notifier observable is empty, the result will complete.
12
+ */
13
+ delay?: number | ((count: number) => ObservableInput<any>);
14
+ }
15
+ /**
16
+ * Returns an Observable that will resubscribe to the source stream when the source stream completes.
17
+ *
18
+ * <span class="informal">Repeats all values emitted on the source. It's like {@link retry}, but for non error cases.</span>
19
+ *
20
+ * ![](repeat.png)
21
+ *
22
+ * Repeat will output values from a source until the source completes, then it will resubscribe to the
23
+ * source a specified number of times, with a specified delay. Repeat can be particularly useful in
24
+ * combination with closing operators like {@link take}, {@link takeUntil}, {@link first}, or {@link takeWhile},
25
+ * as it can be used to restart a source again from scratch.
26
+ *
27
+ * Repeat is very similar to {@link retry}, where {@link retry} will resubscribe to the source in the error case, but
28
+ * `repeat` will resubscribe if the source completes.
29
+ *
30
+ * Note that `repeat` will _not_ catch errors. Use {@link retry} for that.
31
+ *
32
+ * - `repeat(0)` returns an empty observable
33
+ * - `repeat()` will repeat forever
34
+ * - `repeat({ delay: 200 })` will repeat forever, with a delay of 200ms between repetitions.
35
+ * - `repeat({ count: 2, delay: 400 })` will repeat twice, with a delay of 400ms between repetitions.
36
+ * - `repeat({ delay: (count) => timer(count * 1000) })` will repeat forever, but will have a delay that grows by one second for each repetition.
37
+ *
38
+ * ## Example
39
+ *
40
+ * Repeat a message stream
41
+ *
42
+ * ```ts
43
+ * import { of, repeat } from 'rxjs';
44
+ *
45
+ * const source = of('Repeat message');
46
+ * const result = source.pipe(repeat(3));
47
+ *
48
+ * result.subscribe(x => console.log(x));
49
+ *
50
+ * // Results
51
+ * // 'Repeat message'
52
+ * // 'Repeat message'
53
+ * // 'Repeat message'
54
+ * ```
55
+ *
56
+ * Repeat 3 values, 2 times
57
+ *
58
+ * ```ts
59
+ * import { interval, take, repeat } from 'rxjs';
60
+ *
61
+ * const source = interval(1000);
62
+ * const result = source.pipe(take(3), repeat(2));
63
+ *
64
+ * result.subscribe(x => console.log(x));
65
+ *
66
+ * // Results every second
67
+ * // 0
68
+ * // 1
69
+ * // 2
70
+ * // 0
71
+ * // 1
72
+ * // 2
73
+ * ```
74
+ *
75
+ * Defining two complex repeats with delays on the same source.
76
+ * Note that the second repeat cannot be called until the first
77
+ * repeat as exhausted it's count.
78
+ *
79
+ * ```ts
80
+ * import { defer, of, repeat } from 'rxjs';
81
+ *
82
+ * const source = defer(() => {
83
+ * return of(`Hello, it is ${new Date()}`)
84
+ * });
85
+ *
86
+ * source.pipe(
87
+ * // Repeat 3 times with a delay of 1 second between repetitions
88
+ * repeat({
89
+ * count: 3,
90
+ * delay: 1000,
91
+ * }),
92
+ *
93
+ * // *Then* repeat forever, but with an exponential step-back
94
+ * // maxing out at 1 minute.
95
+ * repeat({
96
+ * delay: (count) => timer(Math.min(60000, 2 ^ count * 1000))
97
+ * })
98
+ * )
99
+ * ```
100
+ *
101
+ * @see {@link repeatWhen}
102
+ * @see {@link retry}
103
+ *
104
+ * @param count The number of times the source Observable items are repeated, a count of 0 will yield
105
+ * an empty Observable.
106
+ */
107
+ export declare function repeat<T>(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction<T>;
108
+ //# sourceMappingURL=repeat.d.ts.map
@@ -0,0 +1,38 @@
1
+ import { Observable } from '../Observable';
2
+ import { MonoTypeOperatorFunction, ObservableInput } from '../types';
3
+ /**
4
+ * Returns an Observable that mirrors the source Observable with the exception of a `complete`. If the source
5
+ * Observable calls `complete`, this method will emit to the Observable returned from `notifier`. If that Observable
6
+ * calls `complete` or `error`, then this method will call `complete` or `error` on the child subscription. Otherwise
7
+ * this method will resubscribe to the source Observable.
8
+ *
9
+ * ![](repeatWhen.png)
10
+ *
11
+ * ## Example
12
+ *
13
+ * Repeat a message stream on click
14
+ *
15
+ * ```ts
16
+ * import { of, fromEvent, repeatWhen } from 'rxjs';
17
+ *
18
+ * const source = of('Repeat message');
19
+ * const documentClick$ = fromEvent(document, 'click');
20
+ *
21
+ * const result = source.pipe(repeatWhen(() => documentClick$));
22
+ *
23
+ * result.subscribe(data => console.log(data))
24
+ * ```
25
+ *
26
+ * @see {@link repeat}
27
+ * @see {@link retry}
28
+ * @see {@link retryWhen}
29
+ *
30
+ * @param notifier Function that receives an Observable of notifications with
31
+ * which a user can `complete` or `error`, aborting the repetition.
32
+ * @return A function that returns an `ObservableInput` that mirrors the source
33
+ * Observable with the exception of a `complete`.
34
+ * @deprecated Will be removed in v9 or v10. Use {@link repeat}'s {@link RepeatConfig#delay delay} option instead.
35
+ * Instead of `repeatWhen(() => notify$)`, use: `repeat({ delay: () => notify$ })`.
36
+ */
37
+ export declare function repeatWhen<T>(notifier: (notifications: Observable<void>) => ObservableInput<any>): MonoTypeOperatorFunction<T>;
38
+ //# sourceMappingURL=repeatWhen.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { MonoTypeOperatorFunction, ObservableInput } from '../types';
2
+ /**
3
+ * The {@link retry} operator configuration object. `retry` either accepts a `number`
4
+ * or an object described by this interface.
5
+ */
6
+ export interface RetryConfig {
7
+ /**
8
+ * The maximum number of times to retry. If `count` is omitted, `retry` will try to
9
+ * resubscribe on errors infinite number of times.
10
+ */
11
+ count?: number;
12
+ /**
13
+ * The number of milliseconds to delay before retrying, OR a function to
14
+ * return a notifier for delaying. If a function is given, that function should
15
+ * return a notifier that, when it emits will retry the source. If the notifier
16
+ * completes _without_ emitting, the resulting observable will complete without error,
17
+ * if the notifier errors, the error will be pushed to the result.
18
+ */
19
+ delay?: number | ((error: any, retryCount: number) => ObservableInput<any>);
20
+ /**
21
+ * Whether or not to reset the retry counter when the retried subscription
22
+ * emits its first value.
23
+ */
24
+ resetOnSuccess?: boolean;
25
+ }
26
+ export declare function retry<T>(count?: number): MonoTypeOperatorFunction<T>;
27
+ export declare function retry<T>(config: RetryConfig): MonoTypeOperatorFunction<T>;
28
+ //# sourceMappingURL=retry.d.ts.map
@@ -0,0 +1,61 @@
1
+ import { Observable } from '../Observable';
2
+ import { MonoTypeOperatorFunction, ObservableInput } from '../types';
3
+ /**
4
+ * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable
5
+ * calls `error`, this method will emit the Throwable that caused the error to the `ObservableInput` returned from `notifier`.
6
+ * If that Observable calls `complete` or `error` then this method will call `complete` or `error` on the child
7
+ * subscription. Otherwise this method will resubscribe to the source Observable.
8
+ *
9
+ * ![](retryWhen.png)
10
+ *
11
+ * Retry an observable sequence on error based on custom criteria.
12
+ *
13
+ * ## Example
14
+ *
15
+ * ```ts
16
+ * import { interval, map, retryWhen, tap, delayWhen, timer } from 'rxjs';
17
+ *
18
+ * const source = interval(1000);
19
+ * const result = source.pipe(
20
+ * map(value => {
21
+ * if (value > 5) {
22
+ * // error will be picked up by retryWhen
23
+ * throw value;
24
+ * }
25
+ * return value;
26
+ * }),
27
+ * retryWhen(errors =>
28
+ * errors.pipe(
29
+ * // log error message
30
+ * tap(value => console.log(`Value ${ value } was too high!`)),
31
+ * // restart in 5 seconds
32
+ * delayWhen(value => timer(value * 1000))
33
+ * )
34
+ * )
35
+ * );
36
+ *
37
+ * result.subscribe(value => console.log(value));
38
+ *
39
+ * // results:
40
+ * // 0
41
+ * // 1
42
+ * // 2
43
+ * // 3
44
+ * // 4
45
+ * // 5
46
+ * // 'Value 6 was too high!'
47
+ * // - Wait 5 seconds then repeat
48
+ * ```
49
+ *
50
+ * @see {@link retry}
51
+ *
52
+ * @param notifier Function that receives an Observable of notifications with which a
53
+ * user can `complete` or `error`, aborting the retry.
54
+ * @return A function that returns an `ObservableInput` that mirrors the source
55
+ * Observable with the exception of an `error`.
56
+ * @deprecated Will be removed in v9 or v10, use {@link retry}'s `delay` option instead.
57
+ * Will be removed in v9 or v10. Use {@link retry}'s {@link RetryConfig#delay delay} option instead.
58
+ * Instead of `retryWhen(() => notify$)`, use: `retry({ delay: () => notify$ })`.
59
+ */
60
+ export declare function retryWhen<T>(notifier: (errors: Observable<any>) => ObservableInput<any>): MonoTypeOperatorFunction<T>;
61
+ //# sourceMappingURL=retryWhen.d.ts.map
@@ -0,0 +1,43 @@
1
+ import { MonoTypeOperatorFunction, ObservableInput } from '../types';
2
+ /**
3
+ * Emits the most recently emitted value from the source Observable whenever
4
+ * another Observable, the `notifier`, emits.
5
+ *
6
+ * <span class="informal">It's like {@link sampleTime}, but samples whenever
7
+ * the `notifier` `ObservableInput` emits something.</span>
8
+ *
9
+ * ![](sample.png)
10
+ *
11
+ * Whenever the `notifier` `ObservableInput` emits a value, `sample`
12
+ * looks at the source Observable and emits whichever value it has most recently
13
+ * emitted since the previous sampling, unless the source has not emitted
14
+ * anything since the previous sampling. The `notifier` is subscribed to as soon
15
+ * as the output Observable is subscribed.
16
+ *
17
+ * ## Example
18
+ *
19
+ * On every click, sample the most recent `seconds` timer
20
+ *
21
+ * ```ts
22
+ * import { fromEvent, interval, sample } from 'rxjs';
23
+ *
24
+ * const seconds = interval(1000);
25
+ * const clicks = fromEvent(document, 'click');
26
+ * const result = seconds.pipe(sample(clicks));
27
+ *
28
+ * result.subscribe(x => console.log(x));
29
+ * ```
30
+ *
31
+ * @see {@link audit}
32
+ * @see {@link debounce}
33
+ * @see {@link sampleTime}
34
+ * @see {@link throttle}
35
+ *
36
+ * @param notifier The `ObservableInput` to use for sampling the
37
+ * source Observable.
38
+ * @return A function that returns an Observable that emits the results of
39
+ * sampling the values emitted by the source Observable whenever the notifier
40
+ * Observable emits value or completes.
41
+ */
42
+ export declare function sample<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T>;
43
+ //# sourceMappingURL=sample.d.ts.map
@@ -0,0 +1,46 @@
1
+ import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
2
+ /**
3
+ * Emits the most recently emitted value from the source Observable within
4
+ * periodic time intervals.
5
+ *
6
+ * <span class="informal">Samples the source Observable at periodic time
7
+ * intervals, emitting what it samples.</span>
8
+ *
9
+ * ![](sampleTime.png)
10
+ *
11
+ * `sampleTime` periodically looks at the source Observable and emits whichever
12
+ * value it has most recently emitted since the previous sampling, unless the
13
+ * source has not emitted anything since the previous sampling. The sampling
14
+ * happens periodically in time every `period` milliseconds (or the time unit
15
+ * defined by the optional `scheduler` argument). The sampling starts as soon as
16
+ * the output Observable is subscribed.
17
+ *
18
+ * ## Example
19
+ *
20
+ * Every second, emit the most recent click at most once
21
+ *
22
+ * ```ts
23
+ * import { fromEvent, sampleTime } from 'rxjs';
24
+ *
25
+ * const clicks = fromEvent(document, 'click');
26
+ * const result = clicks.pipe(sampleTime(1000));
27
+ *
28
+ * result.subscribe(x => console.log(x));
29
+ * ```
30
+ *
31
+ * @see {@link auditTime}
32
+ * @see {@link debounceTime}
33
+ * @see {@link delay}
34
+ * @see {@link sample}
35
+ * @see {@link throttleTime}
36
+ *
37
+ * @param {number} period The sampling period expressed in milliseconds or the
38
+ * time unit determined internally by the optional `scheduler`.
39
+ * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for
40
+ * managing the timers that handle the sampling.
41
+ * @return A function that returns an Observable that emits the results of
42
+ * sampling the values emitted by the source Observable at the specified time
43
+ * interval.
44
+ */
45
+ export declare function sampleTime<T>(period: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;
46
+ //# sourceMappingURL=sampleTime.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { OperatorFunction } from '../types';
2
+ export declare function scan<V, A = V>(accumulator: (acc: A | V, value: V, index: number) => A): OperatorFunction<V, V | A>;
3
+ export declare function scan<V, A>(accumulator: (acc: A, value: V, index: number) => A, seed: A): OperatorFunction<V, A>;
4
+ export declare function scan<V, A, S>(accumulator: (acc: A | S, value: V, index: number) => A, seed: S): OperatorFunction<V, A>;
5
+ //# sourceMappingURL=scan.d.ts.map
@@ -0,0 +1,60 @@
1
+ import { OperatorFunction, ObservableInput } from '../types';
2
+ /**
3
+ * Compares all values of two observables in sequence using an optional comparator function
4
+ * and returns an observable of a single boolean value representing whether or not the two sequences
5
+ * are equal.
6
+ *
7
+ * <span class="informal">Checks to see of all values emitted by both observables are equal, in order.</span>
8
+ *
9
+ * ![](sequenceEqual.png)
10
+ *
11
+ * `sequenceEqual` subscribes to source observable and `compareTo` `ObservableInput` (that internally
12
+ * gets converted to an observable) and buffers incoming values from each observable. Whenever either
13
+ * observable emits a value, the value is buffered and the buffers are shifted and compared from the bottom
14
+ * up; If any value pair doesn't match, the returned observable will emit `false` and complete. If one of the
15
+ * observables completes, the operator will wait for the other observable to complete; If the other
16
+ * observable emits before completing, the returned observable will emit `false` and complete. If one observable never
17
+ * completes or emits after the other completes, the returned observable will never complete.
18
+ *
19
+ * ## Example
20
+ *
21
+ * Figure out if the Konami code matches
22
+ *
23
+ * ```ts
24
+ * import { from, fromEvent, map, bufferCount, mergeMap, sequenceEqual } from 'rxjs';
25
+ *
26
+ * const codes = from([
27
+ * 'ArrowUp',
28
+ * 'ArrowUp',
29
+ * 'ArrowDown',
30
+ * 'ArrowDown',
31
+ * 'ArrowLeft',
32
+ * 'ArrowRight',
33
+ * 'ArrowLeft',
34
+ * 'ArrowRight',
35
+ * 'KeyB',
36
+ * 'KeyA',
37
+ * 'Enter', // no start key, clearly.
38
+ * ]);
39
+ *
40
+ * const keys = fromEvent<KeyboardEvent>(document, 'keyup').pipe(map(e => e.code));
41
+ * const matches = keys.pipe(
42
+ * bufferCount(11, 1),
43
+ * mergeMap(last11 => from(last11).pipe(sequenceEqual(codes)))
44
+ * );
45
+ * matches.subscribe(matched => console.log('Successful cheat at Contra? ', matched));
46
+ * ```
47
+ *
48
+ * @see {@link combineLatest}
49
+ * @see {@link zip}
50
+ * @see {@link withLatestFrom}
51
+ *
52
+ * @param compareTo The `ObservableInput` sequence to compare the source sequence to.
53
+ * @param comparator An optional function to compare each value pair.
54
+ *
55
+ * @return A function that returns an Observable that emits a single boolean
56
+ * value representing whether or not the values emitted by the source
57
+ * Observable and provided `ObservableInput` were equal in sequence.
58
+ */
59
+ export declare function sequenceEqual<T>(compareTo: ObservableInput<T>, comparator?: (a: T, b: T) => boolean): OperatorFunction<T, boolean>;
60
+ //# sourceMappingURL=sequenceEqual.d.ts.map
@@ -0,0 +1,43 @@
1
+ import { MonoTypeOperatorFunction, SubjectLike, ObservableInput } from '../types';
2
+ export interface ShareConfig<T> {
3
+ /**
4
+ * The factory used to create the subject that will connect the source observable to
5
+ * multicast consumers.
6
+ */
7
+ connector?: () => SubjectLike<T>;
8
+ /**
9
+ * If `true`, the resulting observable will reset internal state on error from source and return to a "cold" state. This
10
+ * allows the resulting observable to be "retried" in the event of an error.
11
+ * If `false`, when an error comes from the source it will push the error into the connecting subject, and the subject
12
+ * will remain the connecting subject, meaning the resulting observable will not go "cold" again, and subsequent retries
13
+ * or resubscriptions will resubscribe to that same subject. In all cases, RxJS subjects will emit the same error again, however
14
+ * {@link ReplaySubject} will also push its buffered values before pushing the error.
15
+ * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained
16
+ * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.
17
+ */
18
+ resetOnError?: boolean | ((error: any) => ObservableInput<any>);
19
+ /**
20
+ * If `true`, the resulting observable will reset internal state on completion from source and return to a "cold" state. This
21
+ * allows the resulting observable to be "repeated" after it is done.
22
+ * If `false`, when the source completes, it will push the completion through the connecting subject, and the subject
23
+ * will remain the connecting subject, meaning the resulting observable will not go "cold" again, and subsequent repeats
24
+ * or resubscriptions will resubscribe to that same subject.
25
+ * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained
26
+ * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.
27
+ */
28
+ resetOnComplete?: boolean | (() => ObservableInput<any>);
29
+ /**
30
+ * If `true`, when the number of subscribers to the resulting observable reaches zero due to those subscribers unsubscribing, the
31
+ * internal state will be reset and the resulting observable will return to a "cold" state. This means that the next
32
+ * time the resulting observable is subscribed to, a new subject will be created and the source will be subscribed to
33
+ * again.
34
+ * If `false`, when the number of subscribers to the resulting observable reaches zero due to unsubscription, the subject
35
+ * will remain connected to the source, and new subscriptions to the result will be connected through that same subject.
36
+ * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained
37
+ * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.
38
+ */
39
+ resetOnRefCountZero?: boolean | (() => ObservableInput<any>);
40
+ }
41
+ export declare function share<T>(): MonoTypeOperatorFunction<T>;
42
+ export declare function share<T>(options: ShareConfig<T>): MonoTypeOperatorFunction<T>;
43
+ //# sourceMappingURL=share.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
2
+ export interface ShareReplayConfig {
3
+ bufferSize?: number;
4
+ windowTime?: number;
5
+ refCount: boolean;
6
+ scheduler?: SchedulerLike;
7
+ }
8
+ export declare function shareReplay<T>(config: ShareReplayConfig): MonoTypeOperatorFunction<T>;
9
+ export declare function shareReplay<T>(bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;
10
+ //# sourceMappingURL=shareReplay.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { Observable } from '../Observable';
2
+ import { MonoTypeOperatorFunction, OperatorFunction, TruthyTypesOf } from '../types';
3
+ export declare function single<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;
4
+ export declare function single<T>(predicate?: (value: T, index: number, source: Observable<T>) => boolean): MonoTypeOperatorFunction<T>;
5
+ //# sourceMappingURL=single.d.ts.map
@@ -0,0 +1,36 @@
1
+ import { MonoTypeOperatorFunction } from '../types';
2
+ /**
3
+ * Returns an Observable that skips the first `count` items emitted by the source Observable.
4
+ *
5
+ * ![](skip.png)
6
+ *
7
+ * Skips the values until the sent notifications are equal or less than provided skip count. It raises
8
+ * an error if skip count is equal or more than the actual number of emits and source raises an error.
9
+ *
10
+ * ## Example
11
+ *
12
+ * Skip the values before the emission
13
+ *
14
+ * ```ts
15
+ * import { interval, skip } from 'rxjs';
16
+ *
17
+ * // emit every half second
18
+ * const source = interval(500);
19
+ * // skip the first 10 emitted values
20
+ * const result = source.pipe(skip(10));
21
+ *
22
+ * result.subscribe(value => console.log(value));
23
+ * // output: 10...11...12...13...
24
+ * ```
25
+ *
26
+ * @see {@link last}
27
+ * @see {@link skipWhile}
28
+ * @see {@link skipUntil}
29
+ * @see {@link skipLast}
30
+ *
31
+ * @param {Number} count - The number of times, items emitted by source Observable should be skipped.
32
+ * @return A function that returns an Observable that skips the first `count`
33
+ * values emitted by the source Observable.
34
+ */
35
+ export declare function skip<T>(count: number): MonoTypeOperatorFunction<T>;
36
+ //# sourceMappingURL=skip.d.ts.map
@@ -0,0 +1,45 @@
1
+ import { MonoTypeOperatorFunction } from '../types';
2
+ /**
3
+ * Skip a specified number of values before the completion of an observable.
4
+ *
5
+ * ![](skipLast.png)
6
+ *
7
+ * Returns an observable that will emit values as soon as it can, given a number of
8
+ * skipped values. For example, if you `skipLast(3)` on a source, when the source
9
+ * emits its fourth value, the first value the source emitted will finally be emitted
10
+ * from the returned observable, as it is no longer part of what needs to be skipped.
11
+ *
12
+ * All values emitted by the result of `skipLast(N)` will be delayed by `N` emissions,
13
+ * as each value is held in a buffer until enough values have been emitted that that
14
+ * the buffered value may finally be sent to the consumer.
15
+ *
16
+ * After subscribing, unsubscribing will not result in the emission of the buffered
17
+ * skipped values.
18
+ *
19
+ * ## Example
20
+ *
21
+ * Skip the last 2 values of an observable with many values
22
+ *
23
+ * ```ts
24
+ * import { of, skipLast } from 'rxjs';
25
+ *
26
+ * const numbers = of(1, 2, 3, 4, 5);
27
+ * const skipLastTwo = numbers.pipe(skipLast(2));
28
+ * skipLastTwo.subscribe(x => console.log(x));
29
+ *
30
+ * // Results in:
31
+ * // 1 2 3
32
+ * // (4 and 5 are skipped)
33
+ * ```
34
+ *
35
+ * @see {@link skip}
36
+ * @see {@link skipUntil}
37
+ * @see {@link skipWhile}
38
+ * @see {@link take}
39
+ *
40
+ * @param skipCount Number of elements to skip from the end of the source Observable.
41
+ * @return A function that returns an Observable that skips the last `count`
42
+ * values emitted by the source Observable.
43
+ */
44
+ export declare function skipLast<T>(skipCount: number): MonoTypeOperatorFunction<T>;
45
+ //# sourceMappingURL=skipLast.d.ts.map
@@ -0,0 +1,48 @@
1
+ import { MonoTypeOperatorFunction, ObservableInput } from '../types';
2
+ /**
3
+ * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.
4
+ *
5
+ * The `skipUntil` operator causes the observable stream to skip the emission of values until the passed in observable
6
+ * emits the first value. This can be particularly useful in combination with user interactions, responses of HTTP
7
+ * requests or waiting for specific times to pass by.
8
+ *
9
+ * ![](skipUntil.png)
10
+ *
11
+ * Internally, the `skipUntil` operator subscribes to the passed in `notifier` `ObservableInput` (which gets converted
12
+ * to an Observable) in order to recognize the emission of its first value. When `notifier` emits next, the operator
13
+ * unsubscribes from it and starts emitting the values of the *source* observable until it completes or errors. It
14
+ * will never let the *source* observable emit any values if the `notifier` completes or throws an error without
15
+ * emitting a value before.
16
+ *
17
+ * ## Example
18
+ *
19
+ * In the following example, all emitted values of the interval observable are skipped until the user clicks anywhere
20
+ * within the page
21
+ *
22
+ * ```ts
23
+ * import { interval, fromEvent, skipUntil } from 'rxjs';
24
+ *
25
+ * const intervalObservable = interval(1000);
26
+ * const click = fromEvent(document, 'click');
27
+ *
28
+ * const emitAfterClick = intervalObservable.pipe(
29
+ * skipUntil(click)
30
+ * );
31
+ * // clicked at 4.6s. output: 5...6...7...8........ or
32
+ * // clicked at 7.3s. output: 8...9...10..11.......
33
+ * emitAfterClick.subscribe(value => console.log(value));
34
+ * ```
35
+ *
36
+ * @see {@link last}
37
+ * @see {@link skip}
38
+ * @see {@link skipWhile}
39
+ * @see {@link skipLast}
40
+ *
41
+ * @param notifier An `ObservableInput` that has to emit an item before the source Observable elements begin to
42
+ * be mirrored by the resulting Observable.
43
+ * @return A function that returns an Observable that skips items from the
44
+ * source Observable until the `notifier` Observable emits an item, then emits the
45
+ * remaining items.
46
+ */
47
+ export declare function skipUntil<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T>;
48
+ //# sourceMappingURL=skipUntil.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { Falsy, MonoTypeOperatorFunction, OperatorFunction } from '../types';
2
+ export declare function skipWhile<T>(predicate: BooleanConstructor): OperatorFunction<T, Extract<T, Falsy> extends never ? never : T>;
3
+ export declare function skipWhile<T>(predicate: (value: T, index: number) => true): OperatorFunction<T, never>;
4
+ export declare function skipWhile<T>(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction<T>;
5
+ //# sourceMappingURL=skipWhile.d.ts.map