@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,72 @@
1
+ import { Observable } from '../Observable';
2
+ import { SchedulerLike } from '../types';
3
+ /**
4
+ * A simple Observable that emits no items to the Observer and immediately
5
+ * emits a complete notification.
6
+ *
7
+ * <span class="informal">Just emits 'complete', and nothing else.</span>
8
+ *
9
+ * ![](empty.png)
10
+ *
11
+ * A simple Observable that only emits the complete notification. It can be used
12
+ * for composing with other Observables, such as in a {@link mergeMap}.
13
+ *
14
+ * ## Examples
15
+ *
16
+ * Log complete notification
17
+ *
18
+ * ```ts
19
+ * import { EMPTY } from 'rxjs';
20
+ *
21
+ * EMPTY.subscribe({
22
+ * next: () => console.log('Next'),
23
+ * complete: () => console.log('Complete!')
24
+ * });
25
+ *
26
+ * // Outputs
27
+ * // Complete!
28
+ * ```
29
+ *
30
+ * Emit the number 7, then complete
31
+ *
32
+ * ```ts
33
+ * import { EMPTY, startWith } from 'rxjs';
34
+ *
35
+ * const result = EMPTY.pipe(startWith(7));
36
+ * result.subscribe(x => console.log(x));
37
+ *
38
+ * // Outputs
39
+ * // 7
40
+ * ```
41
+ *
42
+ * Map and flatten only odd numbers to the sequence `'a'`, `'b'`, `'c'`
43
+ *
44
+ * ```ts
45
+ * import { interval, mergeMap, of, EMPTY } from 'rxjs';
46
+ *
47
+ * const interval$ = interval(1000);
48
+ * const result = interval$.pipe(
49
+ * mergeMap(x => x % 2 === 1 ? of('a', 'b', 'c') : EMPTY),
50
+ * );
51
+ * result.subscribe(x => console.log(x));
52
+ *
53
+ * // Results in the following to the console:
54
+ * // x is equal to the count on the interval, e.g. (0, 1, 2, 3, ...)
55
+ * // x will occur every 1000ms
56
+ * // if x % 2 is equal to 1, print a, b, c (each on its own)
57
+ * // if x % 2 is not equal to 1, nothing will be output
58
+ * ```
59
+ *
60
+ * @see {@link Observable}
61
+ * @see {@link NEVER}
62
+ * @see {@link of}
63
+ * @see {@link throwError}
64
+ */
65
+ export declare const EMPTY: Observable<never>;
66
+ /**
67
+ * @param scheduler A {@link SchedulerLike} to use for scheduling
68
+ * the emission of the complete notification.
69
+ * @deprecated Replaced with the {@link EMPTY} constant or {@link scheduled} (e.g. `scheduled([], scheduler)`). Will be removed in v8.
70
+ */
71
+ export declare function empty(scheduler?: SchedulerLike): Observable<never>;
72
+ //# sourceMappingURL=empty.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { Observable } from '../Observable';
2
+ import { ObservedValueOf, ObservableInputTuple, ObservableInput } from '../types';
3
+ import { AnyCatcher } from '../AnyCatcher';
4
+ /**
5
+ * You have passed `any` here, we can't figure out if it is
6
+ * an array or an object, so you're getting `unknown`. Use better types.
7
+ * @param arg Something typed as `any`
8
+ */
9
+ export declare function forkJoin<T extends AnyCatcher>(arg: T): Observable<unknown>;
10
+ export declare function forkJoin(scheduler: null | undefined): Observable<never>;
11
+ export declare function forkJoin(sources: readonly []): Observable<never>;
12
+ export declare function forkJoin<A extends readonly unknown[]>(sources: readonly [...ObservableInputTuple<A>]): Observable<A>;
13
+ export declare function forkJoin<A extends readonly unknown[], R>(sources: readonly [...ObservableInputTuple<A>], resultSelector: (...values: A) => R): Observable<R>;
14
+ /** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */
15
+ export declare function forkJoin<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;
16
+ /** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */
17
+ export declare function forkJoin<A extends readonly unknown[], R>(...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]): Observable<R>;
18
+ export declare function forkJoin(sourcesObject: {
19
+ [K in any]: never;
20
+ }): Observable<never>;
21
+ export declare function forkJoin<T extends Record<string, ObservableInput<any>>>(sourcesObject: T): Observable<{
22
+ [K in keyof T]: ObservedValueOf<T[K]>;
23
+ }>;
24
+ //# sourceMappingURL=forkJoin.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { Observable } from '../Observable';
2
+ import { ObservableInput, SchedulerLike, ObservedValueOf } from '../types';
3
+ export declare function from<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;
4
+ /** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */
5
+ export declare function from<O extends ObservableInput<any>>(input: O, scheduler: SchedulerLike | undefined): Observable<ObservedValueOf<O>>;
6
+ //# sourceMappingURL=from.d.ts.map
@@ -0,0 +1,45 @@
1
+ import { Observable } from '../Observable';
2
+ export interface NodeStyleEventEmitter {
3
+ addListener(eventName: string | symbol, handler: NodeEventHandler): this;
4
+ removeListener(eventName: string | symbol, handler: NodeEventHandler): this;
5
+ }
6
+ export declare type NodeEventHandler = (...args: any[]) => void;
7
+ export interface NodeCompatibleEventEmitter {
8
+ addListener(eventName: string, handler: NodeEventHandler): void | {};
9
+ removeListener(eventName: string, handler: NodeEventHandler): void | {};
10
+ }
11
+ export interface JQueryStyleEventEmitter<TContext, T> {
12
+ on(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void;
13
+ off(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void;
14
+ }
15
+ export interface EventListenerObject<E> {
16
+ handleEvent(evt: E): void;
17
+ }
18
+ export interface HasEventTargetAddRemove<E> {
19
+ addEventListener(type: string, listener: ((evt: E) => void) | EventListenerObject<E> | null, options?: boolean | AddEventListenerOptions): void;
20
+ removeEventListener(type: string, listener: ((evt: E) => void) | EventListenerObject<E> | null, options?: EventListenerOptions | boolean): void;
21
+ }
22
+ export interface EventListenerOptions {
23
+ capture?: boolean;
24
+ passive?: boolean;
25
+ once?: boolean;
26
+ }
27
+ export interface AddEventListenerOptions extends EventListenerOptions {
28
+ once?: boolean;
29
+ passive?: boolean;
30
+ }
31
+ export declare function fromEvent<T>(target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>, eventName: string): Observable<T>;
32
+ export declare function fromEvent<T, R>(target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>, eventName: string, resultSelector: (event: T) => R): Observable<R>;
33
+ export declare function fromEvent<T>(target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>, eventName: string, options: EventListenerOptions): Observable<T>;
34
+ export declare function fromEvent<T, R>(target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>, eventName: string, options: EventListenerOptions, resultSelector: (event: T) => R): Observable<R>;
35
+ export declare function fromEvent(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string): Observable<unknown>;
36
+ /** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */
37
+ export declare function fromEvent<T>(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string): Observable<T>;
38
+ export declare function fromEvent<R>(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string, resultSelector: (...args: any[]) => R): Observable<R>;
39
+ export declare function fromEvent(target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>, eventName: string): Observable<unknown>;
40
+ /** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */
41
+ export declare function fromEvent<T>(target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>, eventName: string): Observable<T>;
42
+ export declare function fromEvent<R>(target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>, eventName: string, resultSelector: (...args: any[]) => R): Observable<R>;
43
+ export declare function fromEvent<T>(target: JQueryStyleEventEmitter<any, T> | ArrayLike<JQueryStyleEventEmitter<any, T>>, eventName: string): Observable<T>;
44
+ export declare function fromEvent<T, R>(target: JQueryStyleEventEmitter<any, T> | ArrayLike<JQueryStyleEventEmitter<any, T>>, eventName: string, resultSelector: (value: T, ...args: any[]) => R): Observable<R>;
45
+ //# sourceMappingURL=fromEvent.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { Observable } from '../Observable';
2
+ import { NodeEventHandler } from './fromEvent';
3
+ export declare function fromEventPattern<T>(addHandler: (handler: NodeEventHandler) => any, removeHandler?: (handler: NodeEventHandler, signal?: any) => void): Observable<T>;
4
+ export declare function fromEventPattern<T>(addHandler: (handler: NodeEventHandler) => any, removeHandler?: (handler: NodeEventHandler, signal?: any) => void, resultSelector?: (...args: any[]) => T): Observable<T>;
5
+ //# sourceMappingURL=fromEventPattern.d.ts.map
@@ -0,0 +1,311 @@
1
+ import { Observable } from '../Observable';
2
+ import { SchedulerLike } from '../types';
3
+ declare type ConditionFunc<S> = (state: S) => boolean;
4
+ declare type IterateFunc<S> = (state: S) => S;
5
+ declare type ResultFunc<S, T> = (state: S) => T;
6
+ export interface GenerateBaseOptions<S> {
7
+ /**
8
+ * Initial state.
9
+ */
10
+ initialState: S;
11
+ /**
12
+ * Condition function that accepts state and returns boolean.
13
+ * When it returns false, the generator stops.
14
+ * If not specified, a generator never stops.
15
+ */
16
+ condition?: ConditionFunc<S>;
17
+ /**
18
+ * Iterate function that accepts state and returns new state.
19
+ */
20
+ iterate: IterateFunc<S>;
21
+ /**
22
+ * SchedulerLike to use for generation process.
23
+ * By default, a generator starts immediately.
24
+ */
25
+ scheduler?: SchedulerLike;
26
+ }
27
+ export interface GenerateOptions<T, S> extends GenerateBaseOptions<S> {
28
+ /**
29
+ * Result selection function that accepts state and returns a value to emit.
30
+ */
31
+ resultSelector: ResultFunc<S, T>;
32
+ }
33
+ /**
34
+ * Generates an observable sequence by running a state-driven loop
35
+ * producing the sequence's elements, using the specified scheduler
36
+ * to send out observer messages.
37
+ *
38
+ * ![](generate.png)
39
+ *
40
+ * ## Examples
41
+ *
42
+ * Produces sequence of numbers
43
+ *
44
+ * ```ts
45
+ * import { generate } from 'rxjs';
46
+ *
47
+ * const result = generate(0, x => x < 3, x => x + 1, x => x);
48
+ *
49
+ * result.subscribe(x => console.log(x));
50
+ *
51
+ * // Logs:
52
+ * // 0
53
+ * // 1
54
+ * // 2
55
+ * ```
56
+ *
57
+ * Use `asapScheduler`
58
+ *
59
+ * ```ts
60
+ * import { generate, asapScheduler } from 'rxjs';
61
+ *
62
+ * const result = generate(1, x => x < 5, x => x * 2, x => x + 1, asapScheduler);
63
+ *
64
+ * result.subscribe(x => console.log(x));
65
+ *
66
+ * // Logs:
67
+ * // 2
68
+ * // 3
69
+ * // 5
70
+ * ```
71
+ *
72
+ * @see {@link from}
73
+ * @see {@link Observable}
74
+ *
75
+ * @param {S} initialState Initial state.
76
+ * @param {function (state: S): boolean} condition Condition to terminate generation (upon returning false).
77
+ * @param {function (state: S): S} iterate Iteration step function.
78
+ * @param {function (state: S): T} resultSelector Selector function for results produced in the sequence. (deprecated)
79
+ * @param {SchedulerLike} [scheduler] A {@link SchedulerLike} on which to run the generator loop. If not provided, defaults to emit immediately.
80
+ * @returns {Observable<T>} The generated sequence.
81
+ * @deprecated Instead of passing separate arguments, use the options argument. Signatures taking separate arguments will be removed in v8.
82
+ */
83
+ export declare function generate<T, S>(initialState: S, condition: ConditionFunc<S>, iterate: IterateFunc<S>, resultSelector: ResultFunc<S, T>, scheduler?: SchedulerLike): Observable<T>;
84
+ /**
85
+ * Generates an Observable by running a state-driven loop
86
+ * that emits an element on each iteration.
87
+ *
88
+ * <span class="informal">Use it instead of nexting values in a for loop.</span>
89
+ *
90
+ * ![](generate.png)
91
+ *
92
+ * `generate` allows you to create a stream of values generated with a loop very similar to
93
+ * a traditional for loop. The first argument of `generate` is a beginning value. The second argument
94
+ * is a function that accepts this value and tests if some condition still holds. If it does,
95
+ * then the loop continues, if not, it stops. The third value is a function which takes the
96
+ * previously defined value and modifies it in some way on each iteration. Note how these three parameters
97
+ * are direct equivalents of three expressions in a traditional for loop: the first expression
98
+ * initializes some state (for example, a numeric index), the second tests if the loop can perform the next
99
+ * iteration (for example, if the index is lower than 10) and the third states how the defined value
100
+ * will be modified on every step (for example, the index will be incremented by one).
101
+ *
102
+ * Return value of a `generate` operator is an Observable that on each loop iteration
103
+ * emits a value. First of all, the condition function is ran. If it returns true, then the Observable
104
+ * emits the currently stored value (initial value at the first iteration) and finally updates
105
+ * that value with iterate function. If at some point the condition returns false, then the Observable
106
+ * completes at that moment.
107
+ *
108
+ * Optionally you can pass a fourth parameter to `generate` - a result selector function which allows you
109
+ * to immediately map the value that would normally be emitted by an Observable.
110
+ *
111
+ * If you find three anonymous functions in `generate` call hard to read, you can provide
112
+ * a single object to the operator instead where the object has the properties: `initialState`,
113
+ * `condition`, `iterate` and `resultSelector`, which should have respective values that you
114
+ * would normally pass to `generate`. `resultSelector` is still optional, but that form
115
+ * of calling `generate` allows you to omit `condition` as well. If you omit it, that means
116
+ * condition always holds, or in other words the resulting Observable will never complete.
117
+ *
118
+ * Both forms of `generate` can optionally accept a scheduler. In case of a multi-parameter call,
119
+ * scheduler simply comes as a last argument (no matter if there is a `resultSelector`
120
+ * function or not). In case of a single-parameter call, you can provide it as a
121
+ * `scheduler` property on the object passed to the operator. In both cases, a scheduler decides when
122
+ * the next iteration of the loop will happen and therefore when the next value will be emitted
123
+ * by the Observable. For example, to ensure that each value is pushed to the Observer
124
+ * on a separate task in the event loop, you could use the `async` scheduler. Note that
125
+ * by default (when no scheduler is passed) values are simply emitted synchronously.
126
+ *
127
+ *
128
+ * ## Examples
129
+ *
130
+ * Use with condition and iterate functions
131
+ *
132
+ * ```ts
133
+ * import { generate } from 'rxjs';
134
+ *
135
+ * const result = generate(0, x => x < 3, x => x + 1);
136
+ *
137
+ * result.subscribe({
138
+ * next: value => console.log(value),
139
+ * complete: () => console.log('Complete!')
140
+ * });
141
+ *
142
+ * // Logs:
143
+ * // 0
144
+ * // 1
145
+ * // 2
146
+ * // 'Complete!'
147
+ * ```
148
+ *
149
+ * Use with condition, iterate and resultSelector functions
150
+ *
151
+ * ```ts
152
+ * import { generate } from 'rxjs';
153
+ *
154
+ * const result = generate(0, x => x < 3, x => x + 1, x => x * 1000);
155
+ *
156
+ * result.subscribe({
157
+ * next: value => console.log(value),
158
+ * complete: () => console.log('Complete!')
159
+ * });
160
+ *
161
+ * // Logs:
162
+ * // 0
163
+ * // 1000
164
+ * // 2000
165
+ * // 'Complete!'
166
+ * ```
167
+ *
168
+ * Use with options object
169
+ *
170
+ * ```ts
171
+ * import { generate } from 'rxjs';
172
+ *
173
+ * const result = generate({
174
+ * initialState: 0,
175
+ * condition(value) { return value < 3; },
176
+ * iterate(value) { return value + 1; },
177
+ * resultSelector(value) { return value * 1000; }
178
+ * });
179
+ *
180
+ * result.subscribe({
181
+ * next: value => console.log(value),
182
+ * complete: () => console.log('Complete!')
183
+ * });
184
+ *
185
+ * // Logs:
186
+ * // 0
187
+ * // 1000
188
+ * // 2000
189
+ * // 'Complete!'
190
+ * ```
191
+ *
192
+ * Use options object without condition function
193
+ *
194
+ * ```ts
195
+ * import { generate } from 'rxjs';
196
+ *
197
+ * const result = generate({
198
+ * initialState: 0,
199
+ * iterate(value) { return value + 1; },
200
+ * resultSelector(value) { return value * 1000; }
201
+ * });
202
+ *
203
+ * result.subscribe({
204
+ * next: value => console.log(value),
205
+ * complete: () => console.log('Complete!') // This will never run
206
+ * });
207
+ *
208
+ * // Logs:
209
+ * // 0
210
+ * // 1000
211
+ * // 2000
212
+ * // 3000
213
+ * // ...and never stops.
214
+ * ```
215
+ *
216
+ * @see {@link from}
217
+ *
218
+ * @param {S} initialState Initial state.
219
+ * @param {function (state: S): boolean} condition Condition to terminate generation (upon returning false).
220
+ * @param {function (state: S): S} iterate Iteration step function.
221
+ * @param {function (state: S): T} [resultSelector] Selector function for results produced in the sequence.
222
+ * @param {Scheduler} [scheduler] A {@link Scheduler} on which to run the generator loop. If not provided, defaults to emitting immediately.
223
+ * @return {Observable<T>} The generated sequence.
224
+ * @deprecated Instead of passing separate arguments, use the options argument. Signatures taking separate arguments will be removed in v8.
225
+ */
226
+ export declare function generate<S>(initialState: S, condition: ConditionFunc<S>, iterate: IterateFunc<S>, scheduler?: SchedulerLike): Observable<S>;
227
+ /**
228
+ * Generates an observable sequence by running a state-driven loop
229
+ * producing the sequence's elements, using the specified scheduler
230
+ * to send out observer messages.
231
+ * The overload accepts options object that might contain initial state, iterate,
232
+ * condition and scheduler.
233
+ *
234
+ * ![](generate.png)
235
+ *
236
+ * ## Examples
237
+ *
238
+ * Use options object with condition function
239
+ *
240
+ * ```ts
241
+ * import { generate } from 'rxjs';
242
+ *
243
+ * const result = generate({
244
+ * initialState: 0,
245
+ * condition: x => x < 3,
246
+ * iterate: x => x + 1
247
+ * });
248
+ *
249
+ * result.subscribe({
250
+ * next: value => console.log(value),
251
+ * complete: () => console.log('Complete!')
252
+ * });
253
+ *
254
+ * // Logs:
255
+ * // 0
256
+ * // 1
257
+ * // 2
258
+ * // 'Complete!'
259
+ * ```
260
+ *
261
+ * @see {@link from}
262
+ * @see {@link Observable}
263
+ *
264
+ * @param {GenerateBaseOptions<S>} options Object that must contain initialState, iterate and might contain condition and scheduler.
265
+ * @returns {Observable<S>} The generated sequence.
266
+ */
267
+ export declare function generate<S>(options: GenerateBaseOptions<S>): Observable<S>;
268
+ /**
269
+ * Generates an observable sequence by running a state-driven loop
270
+ * producing the sequence's elements, using the specified scheduler
271
+ * to send out observer messages.
272
+ * The overload accepts options object that might contain initial state, iterate,
273
+ * condition, result selector and scheduler.
274
+ *
275
+ * ![](generate.png)
276
+ *
277
+ * ## Examples
278
+ *
279
+ * Use options object with condition and iterate function
280
+ *
281
+ * ```ts
282
+ * import { generate } from 'rxjs';
283
+ *
284
+ * const result = generate({
285
+ * initialState: 0,
286
+ * condition: x => x < 3,
287
+ * iterate: x => x + 1,
288
+ * resultSelector: x => x
289
+ * });
290
+ *
291
+ * result.subscribe({
292
+ * next: value => console.log(value),
293
+ * complete: () => console.log('Complete!')
294
+ * });
295
+ *
296
+ * // Logs:
297
+ * // 0
298
+ * // 1
299
+ * // 2
300
+ * // 'Complete!'
301
+ * ```
302
+ *
303
+ * @see {@link from}
304
+ * @see {@link Observable}
305
+ *
306
+ * @param {GenerateOptions<T, S>} options Object that must contain initialState, iterate, resultSelector and might contain condition and scheduler.
307
+ * @returns {Observable<T>} The generated sequence.
308
+ */
309
+ export declare function generate<T, S>(options: GenerateOptions<T, S>): Observable<T>;
310
+ export {};
311
+ //# sourceMappingURL=generate.d.ts.map
@@ -0,0 +1,82 @@
1
+ import { Observable } from '../Observable';
2
+ import { ObservableInput } from '../types';
3
+ /**
4
+ * Checks a boolean at subscription time, and chooses between one of two observable sources
5
+ *
6
+ * `iif` expects a function that returns a boolean (the `condition` function), and two sources,
7
+ * the `trueResult` and the `falseResult`, and returns an Observable.
8
+ *
9
+ * At the moment of subscription, the `condition` function is called. If the result is `true`, the
10
+ * subscription will be to the source passed as the `trueResult`, otherwise, the subscription will be
11
+ * to the source passed as the `falseResult`.
12
+ *
13
+ * If you need to check more than two options to choose between more than one observable, have a look at the {@link defer} creation method.
14
+ *
15
+ * ## Examples
16
+ *
17
+ * Change at runtime which Observable will be subscribed
18
+ *
19
+ * ```ts
20
+ * import { iif, of } from 'rxjs';
21
+ *
22
+ * let subscribeToFirst;
23
+ * const firstOrSecond = iif(
24
+ * () => subscribeToFirst,
25
+ * of('first'),
26
+ * of('second')
27
+ * );
28
+ *
29
+ * subscribeToFirst = true;
30
+ * firstOrSecond.subscribe(value => console.log(value));
31
+ *
32
+ * // Logs:
33
+ * // 'first'
34
+ *
35
+ * subscribeToFirst = false;
36
+ * firstOrSecond.subscribe(value => console.log(value));
37
+ *
38
+ * // Logs:
39
+ * // 'second'
40
+ * ```
41
+ *
42
+ * Control access to an Observable
43
+ *
44
+ * ```ts
45
+ * import { iif, of, EMPTY } from 'rxjs';
46
+ *
47
+ * let accessGranted;
48
+ * const observableIfYouHaveAccess = iif(
49
+ * () => accessGranted,
50
+ * of('It seems you have an access...'),
51
+ * EMPTY
52
+ * );
53
+ *
54
+ * accessGranted = true;
55
+ * observableIfYouHaveAccess.subscribe({
56
+ * next: value => console.log(value),
57
+ * complete: () => console.log('The end')
58
+ * });
59
+ *
60
+ * // Logs:
61
+ * // 'It seems you have an access...'
62
+ * // 'The end'
63
+ *
64
+ * accessGranted = false;
65
+ * observableIfYouHaveAccess.subscribe({
66
+ * next: value => console.log(value),
67
+ * complete: () => console.log('The end')
68
+ * });
69
+ *
70
+ * // Logs:
71
+ * // 'The end'
72
+ * ```
73
+ *
74
+ * @see {@link defer}
75
+ *
76
+ * @param condition Condition which Observable should be chosen.
77
+ * @param trueResult An Observable that will be subscribed if condition is true.
78
+ * @param falseResult An Observable that will be subscribed if condition is false.
79
+ * @return An observable that proxies to `trueResult` or `falseResult`, depending on the result of the `condition` function.
80
+ */
81
+ export declare function iif<T, F>(condition: () => boolean, trueResult: ObservableInput<T>, falseResult: ObservableInput<F>): Observable<T | F>;
82
+ //# sourceMappingURL=iif.d.ts.map
@@ -0,0 +1,49 @@
1
+ import { Observable } from '../Observable';
2
+ import { SchedulerLike } from '../types';
3
+ /**
4
+ * Creates an Observable that emits sequential numbers every specified
5
+ * interval of time, on a specified {@link SchedulerLike}.
6
+ *
7
+ * <span class="informal">Emits incremental numbers periodically in time.</span>
8
+ *
9
+ * ![](interval.png)
10
+ *
11
+ * `interval` returns an Observable that emits an infinite sequence of
12
+ * ascending integers, with a constant interval of time of your choosing
13
+ * between those emissions. The first emission is not sent immediately, but
14
+ * only after the first period has passed. By default, this operator uses the
15
+ * `async` {@link SchedulerLike} to provide a notion of time, but you may pass any
16
+ * {@link SchedulerLike} to it.
17
+ *
18
+ * ## Example
19
+ *
20
+ * Emits ascending numbers, one every second (1000ms) up to the number 3
21
+ *
22
+ * ```ts
23
+ * import { interval, take } from 'rxjs';
24
+ *
25
+ * const numbers = interval(1000);
26
+ *
27
+ * const takeFourNumbers = numbers.pipe(take(4));
28
+ *
29
+ * takeFourNumbers.subscribe(x => console.log('Next: ', x));
30
+ *
31
+ * // Logs:
32
+ * // Next: 0
33
+ * // Next: 1
34
+ * // Next: 2
35
+ * // Next: 3
36
+ * ```
37
+ *
38
+ * @see {@link timer}
39
+ * @see {@link delay}
40
+ *
41
+ * @param {number} [period=0] The interval size in milliseconds (by default)
42
+ * or the time unit determined by the scheduler's clock.
43
+ * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for scheduling
44
+ * the emission of values, and providing a notion of "time".
45
+ * @return {Observable} An Observable that emits a sequential number each time
46
+ * interval.
47
+ */
48
+ export declare function interval(period?: number, scheduler?: SchedulerLike): Observable<number>;
49
+ //# sourceMappingURL=interval.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { Observable } from '../Observable';
2
+ import { ObservableInputTuple, SchedulerLike } from '../types';
3
+ export declare function merge<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A[number]>;
4
+ export declare function merge<A extends readonly unknown[]>(...sourcesAndConcurrency: [...ObservableInputTuple<A>, number?]): Observable<A[number]>;
5
+ /** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
6
+ export declare function merge<A extends readonly unknown[]>(...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike?]): Observable<A[number]>;
7
+ /** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
8
+ export declare function merge<A extends readonly unknown[]>(...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number?, SchedulerLike?]): Observable<A[number]>;
9
+ //# sourceMappingURL=merge.d.ts.map
@@ -0,0 +1,40 @@
1
+ import { Observable } from '../Observable';
2
+ /**
3
+ * An Observable that emits no items to the Observer and never completes.
4
+ *
5
+ * ![](never.png)
6
+ *
7
+ * A simple Observable that emits neither values nor errors nor the completion
8
+ * notification. It can be used for testing purposes or for composing with other
9
+ * Observables. Please note that by never emitting a complete notification, this
10
+ * Observable keeps the subscription from being disposed automatically.
11
+ * Subscriptions need to be manually disposed.
12
+ *
13
+ * ## Example
14
+ *
15
+ * Emit the number 7, then never emit anything else (not even complete)
16
+ *
17
+ * ```ts
18
+ * import { NEVER, startWith } from 'rxjs';
19
+ *
20
+ * const info = () => console.log('Will not be called');
21
+ *
22
+ * const result = NEVER.pipe(startWith(7));
23
+ * result.subscribe({
24
+ * next: x => console.log(x),
25
+ * error: info,
26
+ * complete: info
27
+ * });
28
+ * ```
29
+ *
30
+ * @see {@link Observable}
31
+ * @see {@link EMPTY}
32
+ * @see {@link of}
33
+ * @see {@link throwError}
34
+ */
35
+ export declare const NEVER: Observable<never>;
36
+ /**
37
+ * @deprecated Replaced with the {@link NEVER} constant. Will be removed in v8.
38
+ */
39
+ export declare function never(): Observable<never>;
40
+ //# sourceMappingURL=never.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { SchedulerLike, ValueFromArray } from '../types';
2
+ import { Observable } from '../Observable';
3
+ export declare function of(value: null): Observable<null>;
4
+ export declare function of(value: undefined): Observable<undefined>;
5
+ /** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */
6
+ export declare function of(scheduler: SchedulerLike): Observable<never>;
7
+ /** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */
8
+ export declare function of<A extends readonly unknown[]>(...valuesAndScheduler: [...A, SchedulerLike]): Observable<ValueFromArray<A>>;
9
+ export declare function of(): Observable<never>;
10
+ /** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */
11
+ export declare function of<T>(): Observable<T>;
12
+ export declare function of<T>(value: T): Observable<T>;
13
+ export declare function of<A extends readonly unknown[]>(...values: A): Observable<ValueFromArray<A>>;
14
+ //# sourceMappingURL=of.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { Observable } from '../Observable';
2
+ import { ObservableInputTuple } from '../types';
3
+ export declare function onErrorResumeNext<A extends readonly unknown[]>(sources: [...ObservableInputTuple<A>]): Observable<A[number]>;
4
+ export declare function onErrorResumeNext<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A[number]>;
5
+ //# sourceMappingURL=onErrorResumeNext.d.ts.map