@bleedingdev/modern-js-utils 3.9.0-ultramodern.1 → 3.9.0-ultramodern.3

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 (283) hide show
  1. package/dist/cjs/cli/require.js +10 -1
  2. package/dist/compiled/chokidar/types/index.d.ts +1 -1
  3. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +1 -1
  4. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +1 -1
  5. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +1 -1
  6. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +1 -1
  7. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +1 -1
  8. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +1 -1
  9. package/dist/compiled/fast-glob/out/types/index.d.ts +1 -1
  10. package/dist/compiled/inquirer/lib/prompts/base.d.ts +100 -0
  11. package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +116 -0
  12. package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +53 -0
  13. package/dist/compiled/inquirer/lib/prompts/editor.d.ts +101 -0
  14. package/dist/compiled/inquirer/lib/prompts/expand.d.ts +149 -0
  15. package/dist/compiled/inquirer/lib/prompts/input.d.ts +82 -0
  16. package/dist/compiled/inquirer/lib/prompts/list.d.ts +89 -0
  17. package/dist/compiled/inquirer/lib/prompts/number.d.ts +32 -0
  18. package/dist/compiled/inquirer/lib/prompts/password.d.ts +82 -0
  19. package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +111 -0
  20. package/dist/compiled/inquirer/lib/utils/events.d.ts +72 -0
  21. package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +23 -0
  22. package/dist/compiled/inquirer/lib/utils/paginator.d.ts +55 -0
  23. package/dist/compiled/inquirer/lib/utils/readline.d.ts +56 -0
  24. package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +90 -0
  25. package/dist/compiled/inquirer/lib/utils/utils.d.ts +30 -0
  26. package/dist/compiled/inquirer/rxjs/LICENSE.txt +202 -0
  27. package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +5 -0
  28. package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +2 -0
  29. package/dist/compiled/inquirer/rxjs/index.d.ts +173 -0
  30. package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +10 -0
  31. package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +13 -0
  32. package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +13 -0
  33. package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +175 -0
  34. package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +2 -0
  35. package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +121 -0
  36. package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +9 -0
  37. package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +49 -0
  38. package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +53 -0
  39. package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +54 -0
  40. package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +72 -0
  41. package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +92 -0
  42. package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +115 -0
  43. package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +227 -0
  44. package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +65 -0
  45. package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +14 -0
  46. package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +200 -0
  47. package/dist/compiled/inquirer/rxjs/internal/config.d.ts +73 -0
  48. package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +7 -0
  49. package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +7 -0
  50. package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +42 -0
  51. package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +5 -0
  52. package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +4 -0
  53. package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +5 -0
  54. package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +33 -0
  55. package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +5 -0
  56. package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +27 -0
  57. package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +51 -0
  58. package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +173 -0
  59. package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +76 -0
  60. package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +7 -0
  61. package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +159 -0
  62. package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +72 -0
  63. package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +24 -0
  64. package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +6 -0
  65. package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +45 -0
  66. package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +5 -0
  67. package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +14 -0
  68. package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +314 -0
  69. package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +82 -0
  70. package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +21 -0
  71. package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +48 -0
  72. package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +9 -0
  73. package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +40 -0
  74. package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +14 -0
  75. package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +5 -0
  76. package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +19 -0
  77. package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +9 -0
  78. package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +12 -0
  79. package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +8 -0
  80. package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +115 -0
  81. package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +126 -0
  82. package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +30 -0
  83. package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +7 -0
  84. package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +41 -0
  85. package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +48 -0
  86. package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +50 -0
  87. package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +41 -0
  88. package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +54 -0
  89. package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +5 -0
  90. package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +46 -0
  91. package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +41 -0
  92. package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +4 -0
  93. package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +6 -0
  94. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +10 -0
  95. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +6 -0
  96. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +43 -0
  97. package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +6 -0
  98. package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +59 -0
  99. package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +7 -0
  100. package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +8 -0
  101. package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +43 -0
  102. package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +87 -0
  103. package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +58 -0
  104. package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +61 -0
  105. package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +59 -0
  106. package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +38 -0
  107. package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +59 -0
  108. package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +6 -0
  109. package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +51 -0
  110. package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +60 -0
  111. package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +4 -0
  112. package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +4 -0
  113. package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +51 -0
  114. package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +7 -0
  115. package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +9 -0
  116. package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +6 -0
  117. package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +47 -0
  118. package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +7 -0
  119. package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +9 -0
  120. package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +9 -0
  121. package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +64 -0
  122. package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +12 -0
  123. package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +9 -0
  124. package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +9 -0
  125. package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +6 -0
  126. package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +119 -0
  127. package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +38 -0
  128. package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +64 -0
  129. package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +14 -0
  130. package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +8 -0
  131. package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +5 -0
  132. package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +10 -0
  133. package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +52 -0
  134. package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +50 -0
  135. package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +10 -0
  136. package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +62 -0
  137. package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +18 -0
  138. package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +7 -0
  139. package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +9 -0
  140. package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +68 -0
  141. package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +44 -0
  142. package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +50 -0
  143. package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +63 -0
  144. package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +56 -0
  145. package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +8 -0
  146. package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +46 -0
  147. package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +54 -0
  148. package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +18 -0
  149. package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +30 -0
  150. package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +19 -0
  151. package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +69 -0
  152. package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +56 -0
  153. package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +6 -0
  154. package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +29 -0
  155. package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +5 -0
  156. package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +61 -0
  157. package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +108 -0
  158. package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +38 -0
  159. package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +28 -0
  160. package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +61 -0
  161. package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +43 -0
  162. package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +46 -0
  163. package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +5 -0
  164. package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +12 -0
  165. package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +60 -0
  166. package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +43 -0
  167. package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +10 -0
  168. package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +5 -0
  169. package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +36 -0
  170. package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +45 -0
  171. package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +48 -0
  172. package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +5 -0
  173. package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +7 -0
  174. package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +62 -0
  175. package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +61 -0
  176. package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +7 -0
  177. package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +8 -0
  178. package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +20 -0
  179. package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +45 -0
  180. package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +42 -0
  181. package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +41 -0
  182. package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +8 -0
  183. package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +72 -0
  184. package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +78 -0
  185. package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +53 -0
  186. package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +39 -0
  187. package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +50 -0
  188. package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +255 -0
  189. package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +8 -0
  190. package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +35 -0
  191. package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +33 -0
  192. package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +48 -0
  193. package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +65 -0
  194. package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +6 -0
  195. package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +49 -0
  196. package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +49 -0
  197. package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +4 -0
  198. package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +10 -0
  199. package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +14 -0
  200. package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +26 -0
  201. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +4 -0
  202. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +4 -0
  203. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +9 -0
  204. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +3 -0
  205. package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +3 -0
  206. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +4 -0
  207. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +15 -0
  208. package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +30 -0
  209. package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +12 -0
  210. package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +6 -0
  211. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +12 -0
  212. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +6 -0
  213. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +24 -0
  214. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +9 -0
  215. package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +14 -0
  216. package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +4 -0
  217. package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +48 -0
  218. package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +38 -0
  219. package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +13 -0
  220. package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +41 -0
  221. package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +53 -0
  222. package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +7 -0
  223. package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +14 -0
  224. package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +14 -0
  225. package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +7 -0
  226. package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +69 -0
  227. package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +14 -0
  228. package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +2 -0
  229. package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +3 -0
  230. package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +8 -0
  231. package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +16 -0
  232. package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +15 -0
  233. package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +6 -0
  234. package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +9 -0
  235. package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +7 -0
  236. package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +88 -0
  237. package/dist/compiled/inquirer/rxjs/internal/types.d.ts +307 -0
  238. package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +19 -0
  239. package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +21 -0
  240. package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +14 -0
  241. package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +17 -0
  242. package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +20 -0
  243. package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +17 -0
  244. package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +16 -0
  245. package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +2 -0
  246. package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +5 -0
  247. package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +11 -0
  248. package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +6 -0
  249. package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +7 -0
  250. package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +11 -0
  251. package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +2 -0
  252. package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +14 -0
  253. package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +5 -0
  254. package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +44 -0
  255. package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +2 -0
  256. package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +2 -0
  257. package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +9 -0
  258. package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +6 -0
  259. package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +4 -0
  260. package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +3 -0
  261. package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +8 -0
  262. package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +6 -0
  263. package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +4 -0
  264. package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +3 -0
  265. package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +15 -0
  266. package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +7 -0
  267. package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +2 -0
  268. package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +2 -0
  269. package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +14 -0
  270. package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +11 -0
  271. package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +7 -0
  272. package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +6 -0
  273. package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +2 -0
  274. package/dist/compiled/inquirer/rxjs/operators/index.d.ts +114 -0
  275. package/dist/compiled/inquirer/rxjs/testing/index.d.ts +2 -0
  276. package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +3 -0
  277. package/dist/compiled/inquirer/types-license +21 -0
  278. package/dist/compiled/lodash/index.d.ts +1 -11
  279. package/dist/compiled/upath/upath.d.ts +2 -2
  280. package/dist/esm/cli/require.mjs +10 -1
  281. package/dist/esm-node/cli/require.mjs +10 -1
  282. package/package.json +7 -6
  283. package/rslib.config.mts +2 -0
@@ -0,0 +1,10 @@
1
+ import { ObservableInputTuple, OperatorFunction, SchedulerLike } from '../types';
2
+ /** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */
3
+ export declare function merge<T, A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>;
4
+ /** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */
5
+ export declare function merge<T, A extends readonly unknown[]>(...sourcesAndConcurrency: [...ObservableInputTuple<A>, number]): OperatorFunction<T, T | A[number]>;
6
+ /** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */
7
+ export declare function merge<T, A extends readonly unknown[]>(...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]): OperatorFunction<T, T | A[number]>;
8
+ /** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */
9
+ export declare function merge<T, A extends readonly unknown[]>(...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number, SchedulerLike]): OperatorFunction<T, T | A[number]>;
10
+ //# sourceMappingURL=merge.d.ts.map
@@ -0,0 +1,62 @@
1
+ import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';
2
+ /**
3
+ * Converts a higher-order Observable into a first-order Observable which
4
+ * concurrently delivers all values that are emitted on the inner Observables.
5
+ *
6
+ * <span class="informal">Flattens an Observable-of-Observables.</span>
7
+ *
8
+ * ![](mergeAll.png)
9
+ *
10
+ * `mergeAll` subscribes to an Observable that emits Observables, also known as
11
+ * a higher-order Observable. Each time it observes one of these emitted inner
12
+ * Observables, it subscribes to that and delivers all the values from the
13
+ * inner Observable on the output Observable. The output Observable only
14
+ * completes once all inner Observables have completed. Any error delivered by
15
+ * a inner Observable will be immediately emitted on the output Observable.
16
+ *
17
+ * ## Examples
18
+ *
19
+ * Spawn a new interval Observable for each click event, and blend their outputs as one Observable
20
+ *
21
+ * ```ts
22
+ * import { fromEvent, map, interval, mergeAll } from '../..';
23
+ *
24
+ * const clicks = fromEvent(document, 'click');
25
+ * const higherOrder = clicks.pipe(map(() => interval(1000)));
26
+ * const firstOrder = higherOrder.pipe(mergeAll());
27
+ *
28
+ * firstOrder.subscribe(x => console.log(x));
29
+ * ```
30
+ *
31
+ * Count from 0 to 9 every second for each click, but only allow 2 concurrent timers
32
+ *
33
+ * ```ts
34
+ * import { fromEvent, map, interval, take, mergeAll } from '../..';
35
+ *
36
+ * const clicks = fromEvent(document, 'click');
37
+ * const higherOrder = clicks.pipe(
38
+ * map(() => interval(1000).pipe(take(10)))
39
+ * );
40
+ * const firstOrder = higherOrder.pipe(mergeAll(2));
41
+ *
42
+ * firstOrder.subscribe(x => console.log(x));
43
+ * ```
44
+ *
45
+ * @see {@link combineLatestAll}
46
+ * @see {@link concatAll}
47
+ * @see {@link exhaustAll}
48
+ * @see {@link merge}
49
+ * @see {@link mergeMap}
50
+ * @see {@link mergeMapTo}
51
+ * @see {@link mergeScan}
52
+ * @see {@link switchAll}
53
+ * @see {@link switchMap}
54
+ * @see {@link zipAll}
55
+ *
56
+ * @param concurrent Maximum number of inner Observables being subscribed to
57
+ * concurrently.
58
+ * @return A function that returns an Observable that emits values coming from
59
+ * all the inner Observables emitted by the source Observable.
60
+ */
61
+ export declare function mergeAll<O extends ObservableInput<any>>(concurrent?: number): OperatorFunction<O, ObservedValueOf<O>>;
62
+ //# sourceMappingURL=mergeAll.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { Observable } from '../Observable';
2
+ import { Subscriber } from '../Subscriber';
3
+ import { ObservableInput, SchedulerLike } from '../types';
4
+ /**
5
+ * A process embodying the general "merge" strategy. This is used in
6
+ * `mergeMap` and `mergeScan` because the logic is otherwise nearly identical.
7
+ * @param source The original source observable
8
+ * @param subscriber The consumer subscriber
9
+ * @param project The projection function to get our inner sources
10
+ * @param concurrent The number of concurrent inner subscriptions
11
+ * @param onBeforeNext Additional logic to apply before nexting to our consumer
12
+ * @param expand If `true` this will perform an "expand" strategy, which differs only
13
+ * in that it recurses, and the inner subscription must be schedule-able.
14
+ * @param innerSubScheduler A scheduler to use to schedule inner subscriptions,
15
+ * this is to support the expand strategy, mostly, and should be deprecated
16
+ */
17
+ export declare function mergeInternals<T, R>(source: Observable<T>, subscriber: Subscriber<R>, project: (value: T, index: number) => ObservableInput<R>, concurrent: number, onBeforeNext?: (innerValue: R) => void, expand?: boolean, innerSubScheduler?: SchedulerLike, additionalFinalizer?: () => void): () => void;
18
+ //# sourceMappingURL=mergeInternals.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';
2
+ export declare function mergeMap<T, O extends ObservableInput<any>>(project: (value: T, index: number) => O, concurrent?: number): OperatorFunction<T, ObservedValueOf<O>>;
3
+ /** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */
4
+ export declare function mergeMap<T, O extends ObservableInput<any>>(project: (value: T, index: number) => O, resultSelector: undefined, concurrent?: number): OperatorFunction<T, ObservedValueOf<O>>;
5
+ /** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */
6
+ export declare function mergeMap<T, R, O extends ObservableInput<any>>(project: (value: T, index: number) => O, resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R, concurrent?: number): OperatorFunction<T, R>;
7
+ //# sourceMappingURL=mergeMap.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { OperatorFunction, ObservedValueOf, ObservableInput } from '../types';
2
+ /** @deprecated Will be removed in v9. Use {@link mergeMap} instead: `mergeMap(() => result)` */
3
+ export declare function mergeMapTo<O extends ObservableInput<unknown>>(innerObservable: O, concurrent?: number): OperatorFunction<unknown, ObservedValueOf<O>>;
4
+ /**
5
+ * @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead.
6
+ * Details: https://rxjs.dev/deprecations/resultSelector
7
+ */
8
+ export declare function mergeMapTo<T, R, O extends ObservableInput<unknown>>(innerObservable: O, resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R, concurrent?: number): OperatorFunction<T, R>;
9
+ //# sourceMappingURL=mergeMapTo.d.ts.map
@@ -0,0 +1,68 @@
1
+ import { ObservableInput, OperatorFunction } from '../types';
2
+ /**
3
+ * Applies an accumulator function over the source Observable where the
4
+ * accumulator function itself returns an Observable, then each intermediate
5
+ * Observable returned is merged into the output Observable.
6
+ *
7
+ * <span class="informal">It's like {@link scan}, but the Observables returned
8
+ * by the accumulator are merged into the outer Observable.</span>
9
+ *
10
+ * The first parameter of the `mergeScan` is an `accumulator` function which is
11
+ * being called every time the source Observable emits a value. `mergeScan` will
12
+ * subscribe to the value returned by the `accumulator` function and will emit
13
+ * values to the subscriber emitted by inner Observable.
14
+ *
15
+ * The `accumulator` function is being called with three parameters passed to it:
16
+ * `acc`, `value` and `index`. The `acc` parameter is used as the state parameter
17
+ * whose value is initially set to the `seed` parameter (the second parameter
18
+ * passed to the `mergeScan` operator).
19
+ *
20
+ * `mergeScan` internally keeps the value of the `acc` parameter: as long as the
21
+ * source Observable emits without inner Observable emitting, the `acc` will be
22
+ * set to `seed`. The next time the inner Observable emits a value, `mergeScan`
23
+ * will internally remember it and it will be passed to the `accumulator`
24
+ * function as `acc` parameter the next time source emits.
25
+ *
26
+ * The `value` parameter of the `accumulator` function is the value emitted by the
27
+ * source Observable, while the `index` is a number which represent the order of the
28
+ * current emission by the source Observable. It starts with 0.
29
+ *
30
+ * The last parameter to the `mergeScan` is the `concurrent` value which defaults
31
+ * to Infinity. It represents the maximum number of inner Observable subscriptions
32
+ * at a time.
33
+ *
34
+ * ## Example
35
+ *
36
+ * Count the number of click events
37
+ *
38
+ * ```ts
39
+ * import { fromEvent, map, mergeScan, of } from '../..';
40
+ *
41
+ * const click$ = fromEvent(document, 'click');
42
+ * const one$ = click$.pipe(map(() => 1));
43
+ * const seed = 0;
44
+ * const count$ = one$.pipe(
45
+ * mergeScan((acc, one) => of(acc + one), seed)
46
+ * );
47
+ *
48
+ * count$.subscribe(x => console.log(x));
49
+ *
50
+ * // Results:
51
+ * // 1
52
+ * // 2
53
+ * // 3
54
+ * // 4
55
+ * // ...and so on for each click
56
+ * ```
57
+ *
58
+ * @see {@link scan}
59
+ * @see {@link switchScan}
60
+ *
61
+ * @param accumulator The accumulator function called on each source value.
62
+ * @param seed The initial accumulation value.
63
+ * @param concurrent Maximum number of input Observables being subscribed to
64
+ * concurrently.
65
+ * @return A function that returns an Observable of the accumulated values.
66
+ */
67
+ export declare function mergeScan<T, R>(accumulator: (acc: R, value: T, index: number) => ObservableInput<R>, seed: R, concurrent?: number): OperatorFunction<T, R>;
68
+ //# sourceMappingURL=mergeScan.d.ts.map
@@ -0,0 +1,44 @@
1
+ import { ObservableInputTuple, OperatorFunction } from '../types';
2
+ /**
3
+ * Merge the values from all observables to a single observable result.
4
+ *
5
+ * Creates an observable, that when subscribed to, subscribes to the source
6
+ * observable, and all other sources provided as arguments. All values from
7
+ * every source are emitted from the resulting subscription.
8
+ *
9
+ * When all sources complete, the resulting observable will complete.
10
+ *
11
+ * When any source errors, the resulting observable will error.
12
+ *
13
+ * ## Example
14
+ *
15
+ * Joining all outputs from multiple user input event streams
16
+ *
17
+ * ```ts
18
+ * import { fromEvent, map, mergeWith } from '../..';
19
+ *
20
+ * const clicks$ = fromEvent(document, 'click').pipe(map(() => 'click'));
21
+ * const mousemoves$ = fromEvent(document, 'mousemove').pipe(map(() => 'mousemove'));
22
+ * const dblclicks$ = fromEvent(document, 'dblclick').pipe(map(() => 'dblclick'));
23
+ *
24
+ * mousemoves$
25
+ * .pipe(mergeWith(clicks$, dblclicks$))
26
+ * .subscribe(x => console.log(x));
27
+ *
28
+ * // result (assuming user interactions)
29
+ * // 'mousemove'
30
+ * // 'mousemove'
31
+ * // 'mousemove'
32
+ * // 'click'
33
+ * // 'click'
34
+ * // 'dblclick'
35
+ * ```
36
+ *
37
+ * @see {@link merge}
38
+ *
39
+ * @param otherSources the sources to combine the current source with.
40
+ * @return A function that returns an Observable that merges the values from
41
+ * all given Observables.
42
+ */
43
+ export declare function mergeWith<T, A extends readonly unknown[]>(...otherSources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>;
44
+ //# sourceMappingURL=mergeWith.d.ts.map
@@ -0,0 +1,50 @@
1
+ import { MonoTypeOperatorFunction } from '../types';
2
+ /**
3
+ * The `min` operator operates on an Observable that emits numbers (or items that
4
+ * can be compared with a provided function), and when source Observable completes
5
+ * it emits a single item: the item with the smallest value.
6
+ *
7
+ * ![](min.png)
8
+ *
9
+ * ## Examples
10
+ *
11
+ * Get the minimal value of a series of numbers
12
+ *
13
+ * ```ts
14
+ * import { of, min } from '../..';
15
+ *
16
+ * of(5, 4, 7, 2, 8)
17
+ * .pipe(min())
18
+ * .subscribe(x => console.log(x));
19
+ *
20
+ * // Outputs
21
+ * // 2
22
+ * ```
23
+ *
24
+ * Use a comparer function to get the minimal item
25
+ *
26
+ * ```ts
27
+ * import { of, min } from '../..';
28
+ *
29
+ * of(
30
+ * { age: 7, name: 'Foo' },
31
+ * { age: 5, name: 'Bar' },
32
+ * { age: 9, name: 'Beer' }
33
+ * ).pipe(
34
+ * min((a, b) => a.age < b.age ? -1 : 1)
35
+ * )
36
+ * .subscribe(x => console.log(x.name));
37
+ *
38
+ * // Outputs
39
+ * // 'Bar'
40
+ * ```
41
+ *
42
+ * @see {@link max}
43
+ *
44
+ * @param comparer Optional comparer function that it will use instead of its
45
+ * default to compare the value of two items.
46
+ * @return A function that returns an Observable that emits item with the
47
+ * smallest value.
48
+ */
49
+ export declare function min<T>(comparer?: (x: T, y: T) => number): MonoTypeOperatorFunction<T>;
50
+ //# sourceMappingURL=min.d.ts.map
@@ -0,0 +1,63 @@
1
+ import { Subject } from '../Subject';
2
+ import { Observable } from '../Observable';
3
+ import { ConnectableObservable } from '../observable/ConnectableObservable';
4
+ import { OperatorFunction, UnaryFunction, ObservedValueOf, ObservableInput } from '../types';
5
+ /**
6
+ * An operator that creates a {@link ConnectableObservable}, that when connected,
7
+ * with the `connect` method, will use the provided subject to multicast the values
8
+ * from the source to all consumers.
9
+ *
10
+ * @param subject The subject to multicast through.
11
+ * @return A function that returns a {@link ConnectableObservable}
12
+ * @deprecated Will be removed in v8. To create a connectable observable, use {@link connectable}.
13
+ * If you're using {@link refCount} after `multicast`, use the {@link share} operator instead.
14
+ * `multicast(subject), refCount()` is equivalent to
15
+ * `share({ connector: () => subject, resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`.
16
+ * Details: https://rxjs.dev/deprecations/multicasting
17
+ */
18
+ export declare function multicast<T>(subject: Subject<T>): UnaryFunction<Observable<T>, ConnectableObservable<T>>;
19
+ /**
20
+ * Because this is deprecated in favor of the {@link connect} operator, and was otherwise poorly documented,
21
+ * rather than duplicate the effort of documenting the same behavior, please see documentation for the
22
+ * {@link connect} operator.
23
+ *
24
+ * @param subject The subject used to multicast.
25
+ * @param selector A setup function to setup the multicast
26
+ * @return A function that returns an observable that mirrors the observable returned by the selector.
27
+ * @deprecated Will be removed in v8. Use the {@link connect} operator instead.
28
+ * `multicast(subject, selector)` is equivalent to
29
+ * `connect(selector, { connector: () => subject })`.
30
+ * Details: https://rxjs.dev/deprecations/multicasting
31
+ */
32
+ export declare function multicast<T, O extends ObservableInput<any>>(subject: Subject<T>, selector: (shared: Observable<T>) => O): OperatorFunction<T, ObservedValueOf<O>>;
33
+ /**
34
+ * An operator that creates a {@link ConnectableObservable}, that when connected,
35
+ * with the `connect` method, will use the provided subject to multicast the values
36
+ * from the source to all consumers.
37
+ *
38
+ * @param subjectFactory A factory that will be called to create the subject. Passing a function here
39
+ * will cause the underlying subject to be "reset" on error, completion, or refCounted unsubscription of
40
+ * the source.
41
+ * @return A function that returns a {@link ConnectableObservable}
42
+ * @deprecated Will be removed in v8. To create a connectable observable, use {@link connectable}.
43
+ * If you're using {@link refCount} after `multicast`, use the {@link share} operator instead.
44
+ * `multicast(() => new BehaviorSubject('test')), refCount()` is equivalent to
45
+ * `share({ connector: () => new BehaviorSubject('test') })`.
46
+ * Details: https://rxjs.dev/deprecations/multicasting
47
+ */
48
+ export declare function multicast<T>(subjectFactory: () => Subject<T>): UnaryFunction<Observable<T>, ConnectableObservable<T>>;
49
+ /**
50
+ * Because this is deprecated in favor of the {@link connect} operator, and was otherwise poorly documented,
51
+ * rather than duplicate the effort of documenting the same behavior, please see documentation for the
52
+ * {@link connect} operator.
53
+ *
54
+ * @param subjectFactory A factory that creates the subject used to multicast.
55
+ * @param selector A function to setup the multicast and select the output.
56
+ * @return A function that returns an observable that mirrors the observable returned by the selector.
57
+ * @deprecated Will be removed in v8. Use the {@link connect} operator instead.
58
+ * `multicast(subjectFactory, selector)` is equivalent to
59
+ * `connect(selector, { connector: subjectFactory })`.
60
+ * Details: https://rxjs.dev/deprecations/multicasting
61
+ */
62
+ export declare function multicast<T, O extends ObservableInput<any>>(subjectFactory: () => Subject<T>, selector: (shared: Observable<T>) => O): OperatorFunction<T, ObservedValueOf<O>>;
63
+ //# sourceMappingURL=multicast.d.ts.map
@@ -0,0 +1,56 @@
1
+ /** @prettier */
2
+ import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
3
+ /**
4
+ * Re-emits all notifications from source Observable with specified scheduler.
5
+ *
6
+ * <span class="informal">Ensure a specific scheduler is used, from outside of an Observable.</span>
7
+ *
8
+ * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule
9
+ * notifications emitted by the source Observable. It might be useful, if you do not have control over
10
+ * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless.
11
+ *
12
+ * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable,
13
+ * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal
14
+ * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits
15
+ * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`.
16
+ * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split
17
+ * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source
18
+ * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a
19
+ * little bit more, to ensure that they are emitted at expected moments.
20
+ *
21
+ * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications
22
+ * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn`
23
+ * will delay all notifications - including error notifications - while `delay` will pass through error
24
+ * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator
25
+ * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used
26
+ * for notification emissions in general.
27
+ *
28
+ * ## Example
29
+ *
30
+ * Ensure values in subscribe are called just before browser repaint
31
+ *
32
+ * ```ts
33
+ * import { interval, observeOn, animationFrameScheduler } from '../..';
34
+ *
35
+ * const someDiv = document.createElement('div');
36
+ * someDiv.style.cssText = 'width: 200px;background: #09c';
37
+ * document.body.appendChild(someDiv);
38
+ * const intervals = interval(10); // Intervals are scheduled
39
+ * // with async scheduler by default...
40
+ * intervals.pipe(
41
+ * observeOn(animationFrameScheduler) // ...but we will observe on animationFrame
42
+ * ) // scheduler to ensure smooth animation.
43
+ * .subscribe(val => {
44
+ * someDiv.style.height = val + 'px';
45
+ * });
46
+ * ```
47
+ *
48
+ * @see {@link delay}
49
+ *
50
+ * @param scheduler Scheduler that will be used to reschedule notifications from source Observable.
51
+ * @param delay Number of milliseconds that states with what delay every notification should be rescheduled.
52
+ * @return A function that returns an Observable that emits the same
53
+ * notifications as the source Observable, but with provided scheduler.
54
+ */
55
+ export declare function observeOn<T>(scheduler: SchedulerLike, delay?: number): MonoTypeOperatorFunction<T>;
56
+ //# sourceMappingURL=observeOn.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { ObservableInputTuple, OperatorFunction } from '../types';
2
+ export declare function onErrorResumeNextWith<T, A extends readonly unknown[]>(sources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>;
3
+ export declare function onErrorResumeNextWith<T, A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>;
4
+ /**
5
+ * @deprecated Renamed. Use {@link onErrorResumeNextWith} instead. Will be removed in v8.
6
+ */
7
+ export declare const onErrorResumeNext: typeof onErrorResumeNextWith;
8
+ //# sourceMappingURL=onErrorResumeNextWith.d.ts.map
@@ -0,0 +1,46 @@
1
+ import { OperatorFunction } from '../types';
2
+ /**
3
+ * Groups pairs of consecutive emissions together and emits them as an array of
4
+ * two values.
5
+ *
6
+ * <span class="informal">Puts the current value and previous value together as
7
+ * an array, and emits that.</span>
8
+ *
9
+ * ![](pairwise.png)
10
+ *
11
+ * The Nth emission from the source Observable will cause the output Observable
12
+ * to emit an array [(N-1)th, Nth] of the previous and the current value, as a
13
+ * pair. For this reason, `pairwise` emits on the second and subsequent
14
+ * emissions from the source Observable, but not on the first emission, because
15
+ * there is no previous value in that case.
16
+ *
17
+ * ## Example
18
+ *
19
+ * On every click (starting from the second), emit the relative distance to the previous click
20
+ *
21
+ * ```ts
22
+ * import { fromEvent, pairwise, map } from '../..';
23
+ *
24
+ * const clicks = fromEvent<PointerEvent>(document, 'click');
25
+ * const pairs = clicks.pipe(pairwise());
26
+ * const distance = pairs.pipe(
27
+ * map(([first, second]) => {
28
+ * const x0 = first.clientX;
29
+ * const y0 = first.clientY;
30
+ * const x1 = second.clientX;
31
+ * const y1 = second.clientY;
32
+ * return Math.sqrt(Math.pow(x0 - x1, 2) + Math.pow(y0 - y1, 2));
33
+ * })
34
+ * );
35
+ *
36
+ * distance.subscribe(x => console.log(x));
37
+ * ```
38
+ *
39
+ * @see {@link buffer}
40
+ * @see {@link bufferCount}
41
+ *
42
+ * @return A function that returns an Observable of pairs (as arrays) of
43
+ * consecutive values from the source Observable.
44
+ */
45
+ export declare function pairwise<T>(): OperatorFunction<T, [T, T]>;
46
+ //# sourceMappingURL=pairwise.d.ts.map
@@ -0,0 +1,54 @@
1
+ import { Observable } from '../Observable';
2
+ import { UnaryFunction } from '../types';
3
+ /**
4
+ * Splits the source Observable into two, one with values that satisfy a
5
+ * predicate, and another with values that don't satisfy the predicate.
6
+ *
7
+ * <span class="informal">It's like {@link filter}, but returns two Observables:
8
+ * one like the output of {@link filter}, and the other with values that did not
9
+ * pass the condition.</span>
10
+ *
11
+ * ![](partition.png)
12
+ *
13
+ * `partition` outputs an array with two Observables that partition the values
14
+ * from the source Observable through the given `predicate` function. The first
15
+ * Observable in that array emits source values for which the predicate argument
16
+ * returns true. The second Observable emits source values for which the
17
+ * predicate returns false. The first behaves like {@link filter} and the second
18
+ * behaves like {@link filter} with the predicate negated.
19
+ *
20
+ * ## Example
21
+ *
22
+ * Partition click events into those on DIV elements and those elsewhere
23
+ *
24
+ * ```ts
25
+ * import { fromEvent } from '../..';
26
+ * import { partition } from 'rxjs/operators';
27
+ *
28
+ * const div = document.createElement('div');
29
+ * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';
30
+ * document.body.appendChild(div);
31
+ *
32
+ * const clicks = fromEvent(document, 'click');
33
+ * const [clicksOnDivs, clicksElsewhere] = clicks.pipe(partition(ev => (<HTMLElement>ev.target).tagName === 'DIV'));
34
+ *
35
+ * clicksOnDivs.subscribe(x => console.log('DIV clicked: ', x));
36
+ * clicksElsewhere.subscribe(x => console.log('Other clicked: ', x));
37
+ * ```
38
+ *
39
+ * @see {@link filter}
40
+ *
41
+ * @param predicate A function that evaluates each value emitted by the source
42
+ * Observable. If it returns `true`, the value is emitted on the first Observable
43
+ * in the returned array, if `false` the value is emitted on the second Observable
44
+ * in the array. The `index` parameter is the number `i` for the i-th source
45
+ * emission that has happened since the subscription, starting from the number `0`.
46
+ * @param thisArg An optional argument to determine the value of `this` in the
47
+ * `predicate` function.
48
+ * @return A function that returns an array with two Observables: one with
49
+ * values that passed the predicate, and another with values that did not pass
50
+ * the predicate.
51
+ * @deprecated Replaced with the {@link partition} static creation function. Will be removed in v8.
52
+ */
53
+ export declare function partition<T>(predicate: (value: T, index: number) => boolean, thisArg?: any): UnaryFunction<Observable<T>, [Observable<T>, Observable<T>]>;
54
+ //# sourceMappingURL=partition.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { OperatorFunction } from '../types';
2
+ /** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */
3
+ export declare function pluck<T, K1 extends keyof T>(k1: K1): OperatorFunction<T, T[K1]>;
4
+ /** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */
5
+ export declare function pluck<T, K1 extends keyof T, K2 extends keyof T[K1]>(k1: K1, k2: K2): OperatorFunction<T, T[K1][K2]>;
6
+ /** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */
7
+ export declare function pluck<T, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2]>(k1: K1, k2: K2, k3: K3): OperatorFunction<T, T[K1][K2][K3]>;
8
+ /** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */
9
+ export declare function pluck<T, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2], K4 extends keyof T[K1][K2][K3]>(k1: K1, k2: K2, k3: K3, k4: K4): OperatorFunction<T, T[K1][K2][K3][K4]>;
10
+ /** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */
11
+ export declare function pluck<T, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2], K4 extends keyof T[K1][K2][K3], K5 extends keyof T[K1][K2][K3][K4]>(k1: K1, k2: K2, k3: K3, k4: K4, k5: K5): OperatorFunction<T, T[K1][K2][K3][K4][K5]>;
12
+ /** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */
13
+ export declare function pluck<T, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2], K4 extends keyof T[K1][K2][K3], K5 extends keyof T[K1][K2][K3][K4], K6 extends keyof T[K1][K2][K3][K4][K5]>(k1: K1, k2: K2, k3: K3, k4: K4, k5: K5, k6: K6): OperatorFunction<T, T[K1][K2][K3][K4][K5][K6]>;
14
+ /** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */
15
+ export declare function pluck<T, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2], K4 extends keyof T[K1][K2][K3], K5 extends keyof T[K1][K2][K3][K4], K6 extends keyof T[K1][K2][K3][K4][K5]>(k1: K1, k2: K2, k3: K3, k4: K4, k5: K5, k6: K6, ...rest: string[]): OperatorFunction<T, unknown>;
16
+ /** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */
17
+ export declare function pluck<T>(...properties: string[]): OperatorFunction<T, unknown>;
18
+ //# sourceMappingURL=pluck.d.ts.map
@@ -0,0 +1,30 @@
1
+ import { Observable } from '../Observable';
2
+ import { ConnectableObservable } from '../observable/ConnectableObservable';
3
+ import { OperatorFunction, UnaryFunction, ObservableInput, ObservedValueOf } from '../types';
4
+ /**
5
+ * Returns a connectable observable that, when connected, will multicast
6
+ * all values through a single underlying {@link Subject} instance.
7
+ *
8
+ * @deprecated Will be removed in v8. To create a connectable observable, use {@link connectable}.
9
+ * `source.pipe(publish())` is equivalent to
10
+ * `connectable(source, { connector: () => new Subject(), resetOnDisconnect: false })`.
11
+ * If you're using {@link refCount} after `publish`, use {@link share} operator instead.
12
+ * `source.pipe(publish(), refCount())` is equivalent to
13
+ * `source.pipe(share({ resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }))`.
14
+ * Details: https://rxjs.dev/deprecations/multicasting
15
+ */
16
+ export declare function publish<T>(): UnaryFunction<Observable<T>, ConnectableObservable<T>>;
17
+ /**
18
+ * Returns an observable, that when subscribed to, creates an underlying {@link Subject},
19
+ * provides an observable view of it to a `selector` function, takes the observable result of
20
+ * that selector function and subscribes to it, sending its values to the consumer, _then_ connects
21
+ * the subject to the original source.
22
+ *
23
+ * @param selector A function used to setup multicasting prior to automatic connection.
24
+ *
25
+ * @deprecated Will be removed in v8. Use the {@link connect} operator instead.
26
+ * `publish(selector)` is equivalent to `connect(selector)`.
27
+ * Details: https://rxjs.dev/deprecations/multicasting
28
+ */
29
+ export declare function publish<T, O extends ObservableInput<any>>(selector: (shared: Observable<T>) => O): OperatorFunction<T, ObservedValueOf<O>>;
30
+ //# sourceMappingURL=publish.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { Observable } from '../Observable';
2
+ import { ConnectableObservable } from '../observable/ConnectableObservable';
3
+ import { UnaryFunction } from '../types';
4
+ /**
5
+ * Creates a {@link ConnectableObservable} that utilizes a {@link BehaviorSubject}.
6
+ *
7
+ * @param initialValue The initial value passed to the {@link BehaviorSubject}.
8
+ * @return A function that returns a {@link ConnectableObservable}
9
+ * @deprecated Will be removed in v8. To create a connectable observable that uses a
10
+ * {@link BehaviorSubject} under the hood, use {@link connectable}.
11
+ * `source.pipe(publishBehavior(initValue))` is equivalent to
12
+ * `connectable(source, { connector: () => new BehaviorSubject(initValue), resetOnDisconnect: false })`.
13
+ * If you're using {@link refCount} after `publishBehavior`, use the {@link share} operator instead.
14
+ * `source.pipe(publishBehavior(initValue), refCount())` is equivalent to
15
+ * `source.pipe(share({ connector: () => new BehaviorSubject(initValue), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }))`.
16
+ * Details: https://rxjs.dev/deprecations/multicasting
17
+ */
18
+ export declare function publishBehavior<T>(initialValue: T): UnaryFunction<Observable<T>, ConnectableObservable<T>>;
19
+ //# sourceMappingURL=publishBehavior.d.ts.map
@@ -0,0 +1,69 @@
1
+ import { Observable } from '../Observable';
2
+ import { ConnectableObservable } from '../observable/ConnectableObservable';
3
+ import { UnaryFunction } from '../types';
4
+ /**
5
+ * Returns a connectable observable sequence that shares a single subscription to the
6
+ * underlying sequence containing only the last notification.
7
+ *
8
+ * ![](publishLast.png)
9
+ *
10
+ * Similar to {@link publish}, but it waits until the source observable completes and stores
11
+ * the last emitted value.
12
+ * Similarly to {@link publishReplay} and {@link publishBehavior}, this keeps storing the last
13
+ * value even if it has no more subscribers. If subsequent subscriptions happen, they will
14
+ * immediately get that last stored value and complete.
15
+ *
16
+ * ## Example
17
+ *
18
+ * ```ts
19
+ * import { ConnectableObservable, interval, publishLast, tap, take } from '../..';
20
+ *
21
+ * const connectable = <ConnectableObservable<number>>interval(1000)
22
+ * .pipe(
23
+ * tap(x => console.log('side effect', x)),
24
+ * take(3),
25
+ * publishLast()
26
+ * );
27
+ *
28
+ * connectable.subscribe({
29
+ * next: x => console.log('Sub. A', x),
30
+ * error: err => console.log('Sub. A Error', err),
31
+ * complete: () => console.log('Sub. A Complete')
32
+ * });
33
+ *
34
+ * connectable.subscribe({
35
+ * next: x => console.log('Sub. B', x),
36
+ * error: err => console.log('Sub. B Error', err),
37
+ * complete: () => console.log('Sub. B Complete')
38
+ * });
39
+ *
40
+ * connectable.connect();
41
+ *
42
+ * // Results:
43
+ * // 'side effect 0' - after one second
44
+ * // 'side effect 1' - after two seconds
45
+ * // 'side effect 2' - after three seconds
46
+ * // 'Sub. A 2' - immediately after 'side effect 2'
47
+ * // 'Sub. B 2'
48
+ * // 'Sub. A Complete'
49
+ * // 'Sub. B Complete'
50
+ * ```
51
+ *
52
+ * @see {@link ConnectableObservable}
53
+ * @see {@link publish}
54
+ * @see {@link publishReplay}
55
+ * @see {@link publishBehavior}
56
+ *
57
+ * @return A function that returns an Observable that emits elements of a
58
+ * sequence produced by multicasting the source sequence.
59
+ * @deprecated Will be removed in v8. To create a connectable observable with an
60
+ * {@link AsyncSubject} under the hood, use {@link connectable}.
61
+ * `source.pipe(publishLast())` is equivalent to
62
+ * `connectable(source, { connector: () => new AsyncSubject(), resetOnDisconnect: false })`.
63
+ * If you're using {@link refCount} after `publishLast`, use the {@link share} operator instead.
64
+ * `source.pipe(publishLast(), refCount())` is equivalent to
65
+ * `source.pipe(share({ connector: () => new AsyncSubject(), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }))`.
66
+ * Details: https://rxjs.dev/deprecations/multicasting
67
+ */
68
+ export declare function publishLast<T>(): UnaryFunction<Observable<T>, ConnectableObservable<T>>;
69
+ //# sourceMappingURL=publishLast.d.ts.map