@dereekb/rxjs 10.0.5 → 10.0.7

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 (159) hide show
  1. package/index.cjs.d.ts +1 -0
  2. package/index.cjs.js +5621 -0
  3. package/index.esm.js +5842 -0
  4. package/package.json +18 -4
  5. package/src/lib/filter/filter.d.ts +1 -1
  6. package/src/lib/filter/filter.map.d.ts +4 -4
  7. package/src/lib/filter/filter.preset.d.ts +2 -2
  8. package/src/lib/filter/filter.source.d.ts +4 -4
  9. package/src/lib/iterator/iteration.accumulator.d.ts +4 -4
  10. package/src/lib/iterator/iteration.accumulator.rxjs.d.ts +3 -3
  11. package/src/lib/iterator/iteration.d.ts +3 -3
  12. package/src/lib/iterator/iteration.mapped.d.ts +4 -4
  13. package/src/lib/iterator/iteration.mapped.page.d.ts +5 -5
  14. package/src/lib/iterator/iteration.next.d.ts +3 -3
  15. package/src/lib/iterator/iterator.page.d.ts +4 -4
  16. package/src/lib/loading/loading.context.d.ts +2 -2
  17. package/src/lib/loading/loading.context.simple.d.ts +3 -3
  18. package/src/lib/loading/loading.context.state.d.ts +4 -4
  19. package/src/lib/loading/loading.context.state.list.d.ts +4 -4
  20. package/src/lib/loading/loading.context.state.value.d.ts +5 -5
  21. package/src/lib/loading/loading.state.d.ts +1 -1
  22. package/src/lib/loading/loading.state.list.d.ts +3 -3
  23. package/src/lib/loading/loading.state.rxjs.d.ts +3 -3
  24. package/src/lib/lock.d.ts +3 -3
  25. package/src/lib/object.d.ts +1 -1
  26. package/src/lib/rxjs/array.d.ts +2 -2
  27. package/src/lib/rxjs/boolean.d.ts +1 -1
  28. package/src/lib/rxjs/decision.d.ts +2 -2
  29. package/src/lib/rxjs/delta.d.ts +1 -1
  30. package/src/lib/rxjs/factory.d.ts +2 -2
  31. package/src/lib/rxjs/getter.d.ts +2 -2
  32. package/src/lib/rxjs/key.d.ts +2 -2
  33. package/src/lib/rxjs/lifecycle.d.ts +2 -2
  34. package/src/lib/rxjs/loading.d.ts +1 -1
  35. package/src/lib/rxjs/map.d.ts +3 -3
  36. package/src/lib/rxjs/misc.d.ts +2 -2
  37. package/src/lib/rxjs/model.d.ts +1 -1
  38. package/src/lib/rxjs/number.d.ts +3 -3
  39. package/src/lib/rxjs/rxjs.async.d.ts +2 -2
  40. package/src/lib/rxjs/rxjs.d.ts +2 -2
  41. package/src/lib/rxjs/rxjs.map.d.ts +2 -2
  42. package/src/lib/rxjs/rxjs.unique.d.ts +2 -2
  43. package/src/lib/rxjs/set.d.ts +2 -2
  44. package/src/lib/rxjs/string.d.ts +2 -2
  45. package/src/lib/rxjs/timeout.d.ts +2 -2
  46. package/src/lib/rxjs/use.d.ts +1 -1
  47. package/src/lib/rxjs/value.d.ts +4 -4
  48. package/src/lib/subscription.d.ts +2 -2
  49. package/src/lib/work/work.factory.d.ts +3 -3
  50. package/src/lib/work/work.instance.d.ts +3 -3
  51. package/CHANGELOG.md +0 -1480
  52. package/src/index.js +0 -5
  53. package/src/index.js.map +0 -1
  54. package/src/lib/filter/filter.js +0 -22
  55. package/src/lib/filter/filter.js.map +0 -1
  56. package/src/lib/filter/filter.map.js +0 -107
  57. package/src/lib/filter/filter.map.js.map +0 -1
  58. package/src/lib/filter/filter.preset.js +0 -22
  59. package/src/lib/filter/filter.preset.js.map +0 -1
  60. package/src/lib/filter/filter.source.js +0 -77
  61. package/src/lib/filter/filter.source.js.map +0 -1
  62. package/src/lib/filter/index.js +0 -8
  63. package/src/lib/filter/index.js.map +0 -1
  64. package/src/lib/index.js +0 -12
  65. package/src/lib/index.js.map +0 -1
  66. package/src/lib/iterator/index.js +0 -11
  67. package/src/lib/iterator/index.js.map +0 -1
  68. package/src/lib/iterator/iteration.accumulator.js +0 -64
  69. package/src/lib/iterator/iteration.accumulator.js.map +0 -1
  70. package/src/lib/iterator/iteration.accumulator.rxjs.js +0 -50
  71. package/src/lib/iterator/iteration.accumulator.rxjs.js.map +0 -1
  72. package/src/lib/iterator/iteration.js +0 -3
  73. package/src/lib/iterator/iteration.js.map +0 -1
  74. package/src/lib/iterator/iteration.mapped.js +0 -37
  75. package/src/lib/iterator/iteration.mapped.js.map +0 -1
  76. package/src/lib/iterator/iteration.mapped.page.js +0 -36
  77. package/src/lib/iterator/iteration.mapped.page.js.map +0 -1
  78. package/src/lib/iterator/iteration.next.js +0 -68
  79. package/src/lib/iterator/iteration.next.js.map +0 -1
  80. package/src/lib/iterator/iterator.page.js +0 -266
  81. package/src/lib/iterator/iterator.page.js.map +0 -1
  82. package/src/lib/loading/index.js +0 -13
  83. package/src/lib/loading/index.js.map +0 -1
  84. package/src/lib/loading/loading.context.js +0 -3
  85. package/src/lib/loading/loading.context.js.map +0 -1
  86. package/src/lib/loading/loading.context.simple.js +0 -40
  87. package/src/lib/loading/loading.context.simple.js.map +0 -1
  88. package/src/lib/loading/loading.context.state.js +0 -57
  89. package/src/lib/loading/loading.context.state.js.map +0 -1
  90. package/src/lib/loading/loading.context.state.list.js +0 -72
  91. package/src/lib/loading/loading.context.state.list.js.map +0 -1
  92. package/src/lib/loading/loading.context.state.value.js +0 -41
  93. package/src/lib/loading/loading.context.state.value.js.map +0 -1
  94. package/src/lib/loading/loading.context.value.js +0 -36
  95. package/src/lib/loading/loading.context.value.js.map +0 -1
  96. package/src/lib/loading/loading.state.js +0 -319
  97. package/src/lib/loading/loading.state.js.map +0 -1
  98. package/src/lib/loading/loading.state.list.js +0 -31
  99. package/src/lib/loading/loading.state.list.js.map +0 -1
  100. package/src/lib/loading/loading.state.rxjs.js +0 -205
  101. package/src/lib/loading/loading.state.rxjs.js.map +0 -1
  102. package/src/lib/lock.js +0 -139
  103. package/src/lib/lock.js.map +0 -1
  104. package/src/lib/object.js +0 -24
  105. package/src/lib/object.js.map +0 -1
  106. package/src/lib/rxjs/array.js +0 -86
  107. package/src/lib/rxjs/array.js.map +0 -1
  108. package/src/lib/rxjs/boolean.js +0 -42
  109. package/src/lib/rxjs/boolean.js.map +0 -1
  110. package/src/lib/rxjs/decision.js +0 -46
  111. package/src/lib/rxjs/decision.js.map +0 -1
  112. package/src/lib/rxjs/delta.js +0 -54
  113. package/src/lib/rxjs/delta.js.map +0 -1
  114. package/src/lib/rxjs/factory.js +0 -21
  115. package/src/lib/rxjs/factory.js.map +0 -1
  116. package/src/lib/rxjs/getter.js +0 -46
  117. package/src/lib/rxjs/getter.js.map +0 -1
  118. package/src/lib/rxjs/index.js +0 -26
  119. package/src/lib/rxjs/index.js.map +0 -1
  120. package/src/lib/rxjs/key.js +0 -25
  121. package/src/lib/rxjs/key.js.map +0 -1
  122. package/src/lib/rxjs/lifecycle.js +0 -55
  123. package/src/lib/rxjs/lifecycle.js.map +0 -1
  124. package/src/lib/rxjs/loading.js +0 -16
  125. package/src/lib/rxjs/loading.js.map +0 -1
  126. package/src/lib/rxjs/map.js +0 -26
  127. package/src/lib/rxjs/map.js.map +0 -1
  128. package/src/lib/rxjs/misc.js +0 -32
  129. package/src/lib/rxjs/misc.js.map +0 -1
  130. package/src/lib/rxjs/model.js +0 -19
  131. package/src/lib/rxjs/model.js.map +0 -1
  132. package/src/lib/rxjs/number.js +0 -24
  133. package/src/lib/rxjs/number.js.map +0 -1
  134. package/src/lib/rxjs/rxjs.async.js +0 -73
  135. package/src/lib/rxjs/rxjs.async.js.map +0 -1
  136. package/src/lib/rxjs/rxjs.js +0 -62
  137. package/src/lib/rxjs/rxjs.js.map +0 -1
  138. package/src/lib/rxjs/rxjs.map.js +0 -61
  139. package/src/lib/rxjs/rxjs.map.js.map +0 -1
  140. package/src/lib/rxjs/rxjs.unique.js +0 -17
  141. package/src/lib/rxjs/rxjs.unique.js.map +0 -1
  142. package/src/lib/rxjs/set.js +0 -31
  143. package/src/lib/rxjs/set.js.map +0 -1
  144. package/src/lib/rxjs/string.js +0 -24
  145. package/src/lib/rxjs/string.js.map +0 -1
  146. package/src/lib/rxjs/timeout.js +0 -30
  147. package/src/lib/rxjs/timeout.js.map +0 -1
  148. package/src/lib/rxjs/use.js +0 -14
  149. package/src/lib/rxjs/use.js.map +0 -1
  150. package/src/lib/rxjs/value.js +0 -171
  151. package/src/lib/rxjs/value.js.map +0 -1
  152. package/src/lib/subscription.js +0 -68
  153. package/src/lib/subscription.js.map +0 -1
  154. package/src/lib/work/index.js +0 -6
  155. package/src/lib/work/index.js.map +0 -1
  156. package/src/lib/work/work.factory.js +0 -43
  157. package/src/lib/work/work.factory.js.map +0 -1
  158. package/src/lib/work/work.instance.js +0 -156
  159. package/src/lib/work/work.instance.js.map +0 -1
package/package.json CHANGED
@@ -1,12 +1,26 @@
1
1
  {
2
2
  "name": "@dereekb/rxjs",
3
- "version": "10.0.5",
4
- "type": "commonjs",
3
+ "version": "10.0.7",
4
+ "exports": {
5
+ ".": {
6
+ "types": "./src/index.d.ts",
7
+ "node": {
8
+ "require": "./index.cjs.js",
9
+ "import": "./index.mjs"
10
+ },
11
+ "browser": {
12
+ "require": "./index.cjs.js",
13
+ "import": "./index.esm.js"
14
+ },
15
+ "default": "./index.cjs.js"
16
+ }
17
+ },
18
+ "dependencies": {},
5
19
  "peerDependencies": {
6
20
  "rxjs": "^7.5.0",
7
21
  "@dereekb/util": "*",
8
22
  "ms": "^3.0.0-canary.1"
9
23
  },
10
- "dependencies": {},
11
- "main": "./src/index.js"
24
+ "module": "./index.esm.js",
25
+ "main": "./index.cjs.js"
12
26
  }
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
1
+ import { type Observable } from 'rxjs';
2
2
  /**
3
3
  * Source that provides a filter observable.
4
4
  */
@@ -1,7 +1,7 @@
1
- import { ObservableOrValue } from '../rxjs/getter';
2
- import { Observable } from 'rxjs';
3
- import { FilterSource, FilterSourceConnector } from './filter';
4
- import { Destroyable, Maybe } from '@dereekb/util';
1
+ import { type ObservableOrValue } from '../rxjs/getter';
2
+ import { type Observable } from 'rxjs';
3
+ import { type FilterSource, type FilterSourceConnector } from './filter';
4
+ import { type Destroyable, type Maybe } from '@dereekb/util';
5
5
  /**
6
6
  * Used to identify a specific filter.
7
7
  */
@@ -1,5 +1,5 @@
1
- import { FilterWithoutPresetString, FilterWithPreset } from './filter';
2
- import { OperatorFunction } from 'rxjs';
1
+ import { type FilterWithoutPresetString, type FilterWithPreset } from './filter';
2
+ import { type OperatorFunction } from 'rxjs';
3
3
  export type MapFilterWithPresetFn<F extends FilterWithPreset> = (filter: F) => FilterWithoutPresetString<F>;
4
4
  export declare function makeMapFilterWithPresetFn<F extends FilterWithPreset>(fn: MapFilterWithPresetFn<F>): MapFilterWithPresetFn<F>;
5
5
  export declare function mapFilterWithPreset<F extends FilterWithPreset>(fn: MapFilterWithPresetFn<F>): OperatorFunction<F, FilterWithoutPresetString<F>>;
@@ -1,7 +1,7 @@
1
- import { Observable } from 'rxjs';
2
- import { FilterSource } from './filter';
3
- import { ObservableOrValue } from '../rxjs/getter';
4
- import { Destroyable, Maybe } from '@dereekb/util';
1
+ import { type Observable } from 'rxjs';
2
+ import { type FilterSource } from './filter';
3
+ import { type ObservableOrValue } from '../rxjs/getter';
4
+ import { type Destroyable, type Maybe } from '@dereekb/util';
5
5
  /**
6
6
  * A basic FilterSource implementation.
7
7
  */
@@ -1,7 +1,7 @@
1
- import { Observable } from 'rxjs';
2
- import { MapFunctionOutputPair, Destroyable, IndexRef } from '@dereekb/util';
3
- import { ItemIteration, PageItemIteration } from './iteration';
4
- import { LoadingState, MapLoadingStateValueMapFunction } from '../loading';
1
+ import { type Observable } from 'rxjs';
2
+ import { type MapFunctionOutputPair, type Destroyable, type IndexRef } from '@dereekb/util';
3
+ import { type ItemIteration, type PageItemIteration } from './iteration';
4
+ import { type LoadingState, type MapLoadingStateValueMapFunction } from '../loading';
5
5
  export type ItemAccumulatorMapFunction<O, I> = MapLoadingStateValueMapFunction<O, I>;
6
6
  /**
7
7
  * An object that accumulates and exposes values from an ItemIteration.
@@ -1,6 +1,6 @@
1
- import { Observable } from 'rxjs';
2
- import { PageListLoadingState } from '../loading';
3
- import { ItemAccumulator, PageItemAccumulator } from './iteration.accumulator';
1
+ import { type Observable } from 'rxjs';
2
+ import { type PageListLoadingState } from '../loading';
3
+ import { type ItemAccumulator, type PageItemAccumulator } from './iteration.accumulator';
4
4
  /**
5
5
  * Used for ItemAccumulators that have an array of results returned per page instead of a single item.
6
6
  *
@@ -1,6 +1,6 @@
1
- import { Observable } from 'rxjs';
2
- import { Destroyable, Maybe, PageNumber } from '@dereekb/util';
3
- import { LoadingState, PageLoadingState } from '../loading';
1
+ import { type Observable } from 'rxjs';
2
+ import { type Destroyable, type Maybe, type PageNumber } from '@dereekb/util';
3
+ import { type LoadingState, type PageLoadingState } from '../loading';
4
4
  export interface ItemIteratorNextRequest {
5
5
  /**
6
6
  * The expected page to request.
@@ -1,7 +1,7 @@
1
- import { LoadingState, MapLoadingStateResultsConfiguration, PageLoadingState } from '../loading';
2
- import { Destroyable } from '@dereekb/util';
3
- import { Observable } from 'rxjs';
4
- import { ItemIteration, ItemIteratorNextRequest } from './iteration';
1
+ import { type LoadingState, type MapLoadingStateResultsConfiguration, type PageLoadingState } from '../loading';
2
+ import { type Destroyable } from '@dereekb/util';
3
+ import { type Observable } from 'rxjs';
4
+ import { type ItemIteration, type ItemIteratorNextRequest } from './iteration';
5
5
  /**
6
6
  * An object that maps loading states from one mapping to another.
7
7
  */
@@ -1,8 +1,8 @@
1
- import { PageLoadingState } from '../loading';
2
- import { Observable } from 'rxjs';
3
- import { ItemIteratorNextRequest, PageItemIteration } from './iteration';
4
- import { MappedItemIteration, MappedItemIterationInstance, MappedItemIterationInstanceMapConfig } from './iteration.mapped';
5
- import { Maybe } from '@dereekb/util';
1
+ import { type PageLoadingState } from '../loading';
2
+ import { type Observable } from 'rxjs';
3
+ import { type ItemIteratorNextRequest, type PageItemIteration } from './iteration';
4
+ import { type MappedItemIteration, MappedItemIterationInstance, type MappedItemIterationInstanceMapConfig } from './iteration.mapped';
5
+ import { type Maybe } from '@dereekb/util';
6
6
  /**
7
7
  * MappedItemIteration for PageItemIteration
8
8
  */
@@ -1,6 +1,6 @@
1
- import { Observable } from 'rxjs';
2
- import { ItemIteration, PageItemIteration } from './iteration';
3
- import { Maybe, GetterOrValue } from '@dereekb/util';
1
+ import { type Observable } from 'rxjs';
2
+ import { type ItemIteration, type PageItemIteration } from './iteration';
3
+ import { type Maybe, type GetterOrValue } from '@dereekb/util';
4
4
  /**
5
5
  * Creates an observable from the input iteration that checks both the hasNext$ and canLoadMore$ states.
6
6
  *
@@ -1,7 +1,7 @@
1
- import { PageLoadingState } from '../loading';
2
- import { Destroyable, Filter, Maybe, PageNumber, Page } from '@dereekb/util';
3
- import { Observable } from 'rxjs';
4
- import { ItemIteratorNextRequest, PageItemIteration } from './iteration';
1
+ import { type PageLoadingState } from '../loading';
2
+ import { type Destroyable, type Filter, type Maybe, type PageNumber, type Page } from '@dereekb/util';
3
+ import { type Observable } from 'rxjs';
4
+ import { type ItemIteratorNextRequest, type PageItemIteration } from './iteration';
5
5
  export interface ItemPageLimit {
6
6
  /**
7
7
  * Maximum number of pages to load.
@@ -1,5 +1,5 @@
1
- import { Observable } from 'rxjs';
2
- import { LoadingErrorPair } from './loading.state';
1
+ import { type Observable } from 'rxjs';
2
+ import { type LoadingErrorPair } from './loading.state';
3
3
  export interface LoadingContextEvent extends LoadingErrorPair {
4
4
  loading: boolean;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { ReadableError } from '@dereekb/util';
2
- import { Observable } from 'rxjs';
3
- import { LoadingContext, LoadingContextEvent } from './loading.context';
1
+ import { type ReadableError } from '@dereekb/util';
2
+ import { type Observable } from 'rxjs';
3
+ import { type LoadingContext, type LoadingContextEvent } from './loading.context';
4
4
  /**
5
5
  * Simple LoadingContext implementation
6
6
  */
@@ -1,7 +1,7 @@
1
- import { Maybe, Destroyable } from '@dereekb/util';
2
- import { Observable } from 'rxjs';
3
- import { LoadingContext, LoadingContextEvent } from './loading.context';
4
- import { LoadingState } from './loading.state';
1
+ import { type Maybe, type Destroyable } from '@dereekb/util';
2
+ import { type Observable } from 'rxjs';
3
+ import { type LoadingContext, type LoadingContextEvent } from './loading.context';
4
+ import { type LoadingState } from './loading.state';
5
5
  export interface AbstractLoadingStateEvent<T = unknown> extends LoadingContextEvent {
6
6
  value?: Maybe<T>;
7
7
  }
@@ -1,7 +1,7 @@
1
- import { LimitArrayConfig, Maybe } from '@dereekb/util';
2
- import { Observable } from 'rxjs';
3
- import { ListLoadingState } from './loading.state';
4
- import { AbstractLoadingEventForLoadingPairConfig, AbstractLoadingStateContext, AbstractLoadingStateContextInstance, AbstractLoadingStateEvent, LoadingStateContextInstanceInputConfig } from './loading.context.state';
1
+ import { type LimitArrayConfig, type Maybe } from '@dereekb/util';
2
+ import { type Observable } from 'rxjs';
3
+ import { type ListLoadingState } from './loading.state';
4
+ import { type AbstractLoadingEventForLoadingPairConfig, type AbstractLoadingStateContext, AbstractLoadingStateContextInstance, type AbstractLoadingStateEvent, type LoadingStateContextInstanceInputConfig } from './loading.context.state';
5
5
  export interface ListLoadingStateContextEvent<T> extends AbstractLoadingStateEvent<T[]> {
6
6
  value?: Maybe<T[]>;
7
7
  }
@@ -1,8 +1,8 @@
1
- import { Maybe } from '@dereekb/util';
2
- import { Observable } from 'rxjs';
3
- import { LoadingContextEvent } from './loading.context';
4
- import { AbstractLoadingEventForLoadingPairConfig, AbstractLoadingStateContext, AbstractLoadingStateContextInstance, LoadingStateContextInstanceInputConfig } from './loading.context.state';
5
- import { LoadingState } from './loading.state';
1
+ import { type Maybe } from '@dereekb/util';
2
+ import { type Observable } from 'rxjs';
3
+ import { type LoadingContextEvent } from './loading.context';
4
+ import { type AbstractLoadingEventForLoadingPairConfig, type AbstractLoadingStateContext, AbstractLoadingStateContextInstance, type LoadingStateContextInstanceInputConfig } from './loading.context.state';
5
+ import { type LoadingState } from './loading.state';
6
6
  export interface LoadingStateContextEvent<T = unknown> extends LoadingContextEvent {
7
7
  value?: Maybe<T>;
8
8
  }
@@ -1,4 +1,4 @@
1
- import { Maybe, ReadableError, ReadableDataError, Page, FilteredPage, PageNumber, MapFunction, ErrorInput } from '@dereekb/util';
1
+ import { type Maybe, type ReadableError, type ReadableDataError, type Page, type FilteredPage, type PageNumber, type MapFunction, type ErrorInput } from '@dereekb/util';
2
2
  /**
3
3
  * A value/error pair used in loading situations.
4
4
  */
@@ -1,6 +1,6 @@
1
- import { PageNumber } from '@dereekb/util';
2
- import { Observable, OperatorFunction } from 'rxjs';
3
- import { ListLoadingState, PageLoadingState } from './loading.state';
1
+ import { type PageNumber } from '@dereekb/util';
2
+ import { type Observable, type OperatorFunction } from 'rxjs';
3
+ import { type ListLoadingState, type PageLoadingState } from './loading.state';
4
4
  /**
5
5
  * Returns true if the loading state is not loading and is empty.
6
6
  *
@@ -1,6 +1,6 @@
1
- import { Maybe, ReadableError, EqualityComparatorFunction } from '@dereekb/util';
2
- import { MonoTypeOperatorFunction, OperatorFunction, Observable, ObservableInputTuple } from 'rxjs';
3
- import { LoadingState, PageLoadingState, MapLoadingStateResultsConfiguration, LoadingStateValue, LoadingStateType, LoadingStateWithValueType } from './loading.state';
1
+ import { type Maybe, type ReadableError, type EqualityComparatorFunction } from '@dereekb/util';
2
+ import { type MonoTypeOperatorFunction, type OperatorFunction, type Observable, type ObservableInputTuple } from 'rxjs';
3
+ import { type LoadingState, type PageLoadingState, type MapLoadingStateResultsConfiguration, type LoadingStateValue, LoadingStateType, type LoadingStateWithValueType } from './loading.state';
4
4
  /**
5
5
  * Wraps an observable output and maps the value to a LoadingState.
6
6
  *
package/src/lib/lock.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { ObservableOrValue } from './rxjs/getter';
2
- import { Observable, Subscription } from 'rxjs';
3
- import { Destroyable, Maybe } from '@dereekb/util';
1
+ import { type ObservableOrValue } from './rxjs/getter';
2
+ import { type Observable, type Subscription } from 'rxjs';
3
+ import { type Destroyable, type Maybe } from '@dereekb/util';
4
4
  export type LockKey = string;
5
5
  export type OnLockSetUnlockedFunction = (unlocked: boolean) => void;
6
6
  export type RemoveLockFunction = () => void;
@@ -1,4 +1,4 @@
1
- import { MonoTypeOperatorFunction, Observable } from 'rxjs';
1
+ import { type MonoTypeOperatorFunction, type Observable } from 'rxjs';
2
2
  /**
3
3
  * Equivalent to distinctUntilChanged() using isEqualObject()
4
4
  */
@@ -1,5 +1,5 @@
1
- import { MonoTypeOperatorFunction, Observable, OperatorFunction, ObservableInput } from 'rxjs';
2
- import { Maybe, ArrayOrValue, MapFunction } from '@dereekb/util';
1
+ import { type MonoTypeOperatorFunction, type Observable, type OperatorFunction, type ObservableInput } from 'rxjs';
2
+ import { type Maybe, type ArrayOrValue, type MapFunction } from '@dereekb/util';
3
3
  export declare function distinctUntilArrayLengthChanges<A>(getArray: (value: A) => unknown[]): MonoTypeOperatorFunction<A>;
4
4
  export declare function distinctUntilArrayLengthChanges<T>(): MonoTypeOperatorFunction<T[]>;
5
5
  export interface ScanIntoArrayConfig {
@@ -1,4 +1,4 @@
1
- import { OperatorFunction, MonoTypeOperatorFunction } from 'rxjs';
1
+ import { type OperatorFunction, type MonoTypeOperatorFunction } from 'rxjs';
2
2
  /**
3
3
  * Returns the pipe if usePipe is true, otherwise returns the identity.
4
4
  */
@@ -1,5 +1,5 @@
1
- import { Milliseconds } from '@dereekb/util';
2
- import { MonoTypeOperatorFunction, Observable } from 'rxjs';
1
+ import { type Milliseconds } from '@dereekb/util';
2
+ import { type MonoTypeOperatorFunction, type Observable } from 'rxjs';
3
3
  /**
4
4
  * Decision-like that takes in a value and returns an Observable with a boolean.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { MonoTypeOperatorFunction } from 'rxjs';
1
+ import { type MonoTypeOperatorFunction } from 'rxjs';
2
2
  /**
3
3
  * onDelta function configuration.
4
4
  */
@@ -1,5 +1,5 @@
1
- import { FactoryWithInput } from '@dereekb/util';
2
- import { Observable } from 'rxjs';
1
+ import { type FactoryWithInput } from '@dereekb/util';
2
+ import { type Observable } from 'rxjs';
3
3
  /**
4
4
  * factoryTimer() configuration
5
5
  */
@@ -1,5 +1,5 @@
1
- import { GetterOrValue, GetterOrValueWithInput, FactoryWithRequiredInput, Maybe, GetterDistinctValue } from '@dereekb/util';
2
- import { Observable, OperatorFunction, Subscription, Observer } from 'rxjs';
1
+ import { type GetterOrValue, type GetterOrValueWithInput, type FactoryWithRequiredInput, type Maybe, type GetterDistinctValue } from '@dereekb/util';
2
+ import { type Observable, type OperatorFunction, type Subscription, type Observer } from 'rxjs';
3
3
  /**
4
4
  * A value that is either the value or an observable that returns the value.
5
5
  */
@@ -1,5 +1,5 @@
1
- import { PrimativeKey, ReadKeyFunction, ReadMultipleKeysFunction } from '@dereekb/util';
2
- import { MonoTypeOperatorFunction } from 'rxjs';
1
+ import { type PrimativeKey, type ReadKeyFunction, type ReadMultipleKeysFunction } from '@dereekb/util';
2
+ import { type MonoTypeOperatorFunction } from 'rxjs';
3
3
  /**
4
4
  * distinctUntilChanged() that reads the unique identifiers from the input values and compares them for uniqueness.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { Destroyable, PromiseOrValue } from '@dereekb/util';
2
- import { MonoTypeOperatorFunction } from 'rxjs';
1
+ import { type Destroyable, type PromiseOrValue } from '@dereekb/util';
2
+ import { type MonoTypeOperatorFunction } from 'rxjs';
3
3
  /**
4
4
  * Cleans up the instance when a new value is pushed.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { OperatorFunction } from 'rxjs';
1
+ import { type OperatorFunction } from 'rxjs';
2
2
  /**
3
3
  * Operator that returns true until the first item is emitted. Then returns false.
4
4
  *
@@ -1,6 +1,6 @@
1
- import { OperatorFunction } from 'rxjs';
2
- import { MapKeysIntersectionObject, PrimativeKey } from '@dereekb/util';
3
- import { ObservableOrValue } from './getter';
1
+ import { type OperatorFunction } from 'rxjs';
2
+ import { type MapKeysIntersectionObject, type PrimativeKey } from '@dereekb/util';
3
+ import { type ObservableOrValue } from './getter';
4
4
  /**
5
5
  * OperatorFunction that pipes the input from the object with a keys observable to produce the result of mapKeysIntersectionObjectToArray.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { RandomNumberFactoryConfig, RandomNumberFactory } from '@dereekb/util';
2
- import { MonoTypeOperatorFunction, SchedulerLike } from 'rxjs';
1
+ import { type RandomNumberFactoryConfig, type RandomNumberFactory } from '@dereekb/util';
2
+ import { type MonoTypeOperatorFunction, type SchedulerLike } from 'rxjs';
3
3
  /**
4
4
  * Used to log a message to the console.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { ModelKeyRef, UniqueModel } from '@dereekb/util';
1
+ import { type ModelKeyRef, type UniqueModel } from '@dereekb/util';
2
2
  /**
3
3
  * distinctUntilChanged() that compares id values.
4
4
  */
@@ -1,6 +1,6 @@
1
- import { IncrementingNumberFactoryConfig } from '@dereekb/util';
2
- import { Observable, OperatorFunction } from 'rxjs';
3
- import { FactoryTimerConfig } from './factory';
1
+ import { type IncrementingNumberFactoryConfig } from '@dereekb/util';
2
+ import { type Observable, type OperatorFunction } from 'rxjs';
3
+ import { type FactoryTimerConfig } from './factory';
4
4
  /**
5
5
  * Similar to count(), but counts emissions as they occur using scan.
6
6
  */
@@ -1,5 +1,5 @@
1
- import { CachedFactoryWithInput, Destroyable } from '@dereekb/util';
2
- import { Observable, Subject } from 'rxjs';
1
+ import { type CachedFactoryWithInput, type Destroyable } from '@dereekb/util';
2
+ import { type Observable, type Subject } from 'rxjs';
3
3
  /**
4
4
  * Default amount of throttle in milliseconds used by AsyncPusher.
5
5
  */
@@ -1,5 +1,5 @@
1
- import { Getter, Maybe } from '@dereekb/util';
2
- import { Observable, MonoTypeOperatorFunction } from 'rxjs';
1
+ import { type Getter, type Maybe } from '@dereekb/util';
2
+ import { type Observable, type MonoTypeOperatorFunction } from 'rxjs';
3
3
  /**
4
4
  * Merges both startWith and tapFirst to initialize a pipe.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { Observable, OperatorFunction } from 'rxjs';
2
- import { PrimativeKey, ReadKeyFunction, ReadMultipleKeysFunction } from '@dereekb/util';
1
+ import { type Observable, type OperatorFunction } from 'rxjs';
2
+ import { type PrimativeKey, type ReadKeyFunction, type ReadMultipleKeysFunction } from '@dereekb/util';
3
3
  /**
4
4
  * Creates a map function that maps the input Map to an Observable that returns values mapped from the map's values.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { FilterUniqueFunctionAdditionalKeysInput, PrimativeKey, ReadKeyFunction } from '@dereekb/util';
2
- import { MonoTypeOperatorFunction } from 'rxjs';
1
+ import { type FilterUniqueFunctionAdditionalKeysInput, type PrimativeKey, type ReadKeyFunction } from '@dereekb/util';
2
+ import { type MonoTypeOperatorFunction } from 'rxjs';
3
3
  /**
4
4
  * Convenience function for building an OperatorFunction that uses filterUniqueFunction().
5
5
  *
@@ -1,5 +1,5 @@
1
- import { Maybe, PrimativeKey, ReadValueFunction, EqualityComparatorFunction } from '@dereekb/util';
2
- import { MonoTypeOperatorFunction, Observable, OperatorFunction } from 'rxjs';
1
+ import { type Maybe, type PrimativeKey, type ReadValueFunction, type EqualityComparatorFunction } from '@dereekb/util';
2
+ import { type MonoTypeOperatorFunction, type Observable, type OperatorFunction } from 'rxjs';
3
3
  export declare function setContainsAllValuesFrom<T>(valuesObs: Observable<Maybe<Iterable<T>>>): OperatorFunction<Set<T>, boolean>;
4
4
  export declare function setContainsAnyValueFrom<T>(valuesObs: Observable<Maybe<Iterable<T>>>): OperatorFunction<Set<T>, boolean>;
5
5
  export declare function setContainsNoValueFrom<T>(valuesObs: Observable<Maybe<Iterable<T>>>): OperatorFunction<Set<T>, boolean>;
@@ -1,5 +1,5 @@
1
- import { Maybe, SearchStringFilterFunctionConfigInput } from '@dereekb/util';
2
- import { MonoTypeOperatorFunction, Observable } from 'rxjs';
1
+ import { type Maybe, type SearchStringFilterFunctionConfigInput } from '@dereekb/util';
2
+ import { type MonoTypeOperatorFunction, type Observable } from 'rxjs';
3
3
  /**
4
4
  * filterWithSearchString() configuration
5
5
  */
@@ -1,5 +1,5 @@
1
- import { MonoTypeOperatorFunction } from 'rxjs';
2
- import { Getter, GetterOrValue } from '@dereekb/util';
1
+ import { type MonoTypeOperatorFunction } from 'rxjs';
2
+ import { type Getter, type GetterOrValue } from '@dereekb/util';
3
3
  /**
4
4
  * Used to pass a default value incase an observable has not yet started emititng values.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
1
+ import { type Observable } from 'rxjs';
2
2
  /**
3
3
  * Convenience function to subscribe to the input observable and use the first value.
4
4
  *
@@ -1,7 +1,7 @@
1
- import { MonoTypeOperatorFunction, Observable, OperatorFunction } from 'rxjs';
2
- import { DecisionFunction, GetterOrValue, MapFunction, Maybe } from '@dereekb/util';
3
- import { MaybeObservableOrValueGetter, ObservableOrValueGetter } from './getter';
4
- import { ObservableDecisionFunction } from './decision';
1
+ import { type MonoTypeOperatorFunction, type Observable, type OperatorFunction } from 'rxjs';
2
+ import { type DecisionFunction, type GetterOrValue, type MapFunction, type Maybe } from '@dereekb/util';
3
+ import { type MaybeObservableOrValueGetter, type ObservableOrValueGetter } from './getter';
4
+ import { type ObservableDecisionFunction } from './decision';
5
5
  export type IsCheckFunction<T = unknown> = (value: T) => Observable<boolean>;
6
6
  /**
7
7
  * Function that validates the input value and returns an observable.
@@ -1,5 +1,5 @@
1
- import { Subscription } from 'rxjs';
2
- import { ArrayOrValue, Destroyable, Maybe } from '@dereekb/util';
1
+ import { type Subscription } from 'rxjs';
2
+ import { type ArrayOrValue, type Destroyable, type Maybe } from '@dereekb/util';
3
3
  /**
4
4
  * Destroyable object that wraps a subscription.
5
5
  */
@@ -1,6 +1,6 @@
1
- import { Observable } from 'rxjs';
2
- import { FactoryWithRequiredInput, Maybe } from '@dereekb/util';
3
- import { WorkInstance, WorkInstanceDelegate } from './work.instance';
1
+ import { type Observable } from 'rxjs';
2
+ import { type FactoryWithRequiredInput, type Maybe } from '@dereekb/util';
3
+ import { WorkInstance, type WorkInstanceDelegate } from './work.instance';
4
4
  /**
5
5
  * A function that handles the incoming value to do work and creates a WorkContext.
6
6
  */
@@ -1,6 +1,6 @@
1
- import { Maybe, Destroyable, ErrorInput } from '@dereekb/util';
2
- import { Observable } from 'rxjs';
3
- import { LoadingState } from '../loading';
1
+ import { type Maybe, type Destroyable, type ErrorInput } from '@dereekb/util';
2
+ import { type Observable } from 'rxjs';
3
+ import { type LoadingState } from '../loading';
4
4
  /**
5
5
  * Delegate for WorkInstance
6
6
  */