@dereekb/rxjs 13.3.0 → 13.4.0

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.
package/index.cjs.js CHANGED
@@ -375,15 +375,12 @@ function switchMapOnBoolean(switchOnValue, obs, otherwise) {
375
375
  });
376
376
  }
377
377
  function filterIfObjectValuesUnchanged(input) {
378
- if (rxjs.isObservable(input)) {
379
- return rxjs.mergeMap(function(inputFilter) {
380
- return input.pipe(filterIfObjectValuesUnchanged(inputFilter));
381
- });
382
- } else {
383
- return rxjs.filter(function(inputObject) {
384
- return !util.areEqualPOJOValues(input, inputObject);
385
- });
386
- }
378
+ var result = rxjs.isObservable(input) ? rxjs.mergeMap(function(inputFilter) {
379
+ return input.pipe(filterIfObjectValuesUnchanged(inputFilter));
380
+ }) : rxjs.filter(function(inputObject) {
381
+ return !util.areEqualPOJOValues(input, inputObject);
382
+ });
383
+ return result;
387
384
  }
388
385
 
389
386
  function _array_like_to_array$a(arr, len) {
@@ -2875,16 +2872,16 @@ function _unsupported_iterable_to_array$4(o, minLen) {
2875
2872
  * @param state - the loading state to check (may be null/undefined)
2876
2873
  * @returns true if loading is complete
2877
2874
  */ function isLoadingStateFinishedLoading(state) {
2875
+ var result = false;
2878
2876
  if (state) {
2879
2877
  var loading = state.loading;
2880
2878
  if (loading === true) {
2881
- return false;
2879
+ result = false;
2882
2880
  } else {
2883
- return loading === false || Boolean(state.value || state.error) || state.value === null;
2881
+ result = loading === false || Boolean(state.value || state.error) || state.value === null;
2884
2882
  }
2885
- } else {
2886
- return false;
2887
2883
  }
2884
+ return result;
2888
2885
  }
2889
2886
  /**
2890
2887
  * Creates an idle {@link LoadingState} with `loading: false` and no value or error.
@@ -3021,11 +3018,8 @@ function beginLoading(state) {
3021
3018
  */ function isLoadingStateWithStateType(type) {
3022
3019
  var defaultResult = type === exports.LoadingStateType.IDLE ? true : false;
3023
3020
  return function(state) {
3024
- if (state) {
3025
- return loadingStateType(state) === type;
3026
- } else {
3027
- return defaultResult;
3028
- }
3021
+ var result = state ? loadingStateType(state) === type : defaultResult;
3022
+ return result;
3029
3023
  };
3030
3024
  }
3031
3025
  /**
@@ -3068,11 +3062,8 @@ function beginLoading(state) {
3068
3062
  * @param state - the loading state to check
3069
3063
  * @returns true if the state has a defined (non-undefined) value
3070
3064
  */ function isLoadingStateWithDefinedValue(state) {
3071
- if (state) {
3072
- return state.value !== undefined;
3073
- } else {
3074
- return false;
3075
- }
3065
+ var result = state ? state.value !== undefined : false;
3066
+ return result;
3076
3067
  }
3077
3068
  /**
3078
3069
  * Type guard that checks whether a {@link LoadingState} has a non-null error, regardless of loading status.
@@ -3086,11 +3077,8 @@ function beginLoading(state) {
3086
3077
  * @param state - the loading state to check
3087
3078
  * @returns true if the state has an error
3088
3079
  */ function isLoadingStateWithError(state) {
3089
- if (state) {
3090
- return state.error != null;
3091
- } else {
3092
- return false;
3093
- }
3080
+ var result = state ? state.error != null : false;
3081
+ return result;
3094
3082
  }
3095
3083
  /**
3096
3084
  * Type guard that checks whether a {@link LoadingState} has finished loading and has a defined value.
@@ -3098,11 +3086,8 @@ function beginLoading(state) {
3098
3086
  * @param state - the loading state to check
3099
3087
  * @returns true if finished loading with a non-undefined value
3100
3088
  */ function isLoadingStateFinishedLoadingWithDefinedValue(state) {
3101
- if (state) {
3102
- return isLoadingStateFinishedLoading(state) && state.value !== undefined;
3103
- } else {
3104
- return false;
3105
- }
3089
+ var result = state ? isLoadingStateFinishedLoading(state) && state.value !== undefined : false;
3090
+ return result;
3106
3091
  }
3107
3092
  /**
3108
3093
  * Type guard that checks whether a {@link LoadingState} has finished loading and has an error.
@@ -3110,11 +3095,8 @@ function beginLoading(state) {
3110
3095
  * @param state - the loading state to check
3111
3096
  * @returns true if finished loading with an error
3112
3097
  */ function isLoadingStateFinishedLoadingWithError(state) {
3113
- if (state) {
3114
- return isLoadingStateFinishedLoading(state) && state.error != null;
3115
- } else {
3116
- return false;
3117
- }
3098
+ var result = state ? isLoadingStateFinishedLoading(state) && state.error != null : false;
3099
+ return result;
3118
3100
  }
3119
3101
  /**
3120
3102
  * Compares the metadata (page, loading, error) of two {@link PageLoadingState} instances for equivalence.
package/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isObservable, of, switchMap, combineLatest, map, delay, startWith, filter, skipWhile, EMPTY, distinctUntilChanged, mergeMap, BehaviorSubject, shareReplay, skip, defaultIfEmpty, first, finalize, merge, firstValueFrom, exhaustMap, scan, identity, throttleTime, takeWhile, timeout, tap, throwError, timer, delayWhen, asyncScheduler, from, catchError, Subject } from 'rxjs';
2
- import { getValueFromGetter, isMaybeSo, filterMaybeArrayValues, areEqualPOJOValues, convertToArray, asGetter, performTaskLoop, isMaybeNot, forEachWithArray, pushArrayItemsIntoArray, pushItemOrArrayItemsIntoArray, asArray, filterAndMapFunction, expirationDetails, objectKeysEqualityComparatorFunction, objectKeyEqualityComparatorFunction, asPromise, randomNumberFactory, mapsHaveSameKeys, mapKeysIntersectionObjectToArray, incrementingNumberFactory, filterUniqueFunction, build, cachedGetter, allKeyValueTuples, keyValueMapFactory, multiKeyValueMapFactory, timePeriodCounter, hasSameValues, compareEqualityWithValueFromItemsFunction, setContainsAllValues, setContainsAnyValue, setContainsNoneOfValue, searchStringFilterFunction, objectHasKey, reduceBooleansWithAnd, toReadableError, reduceBooleansWithOr, valuesAreBothNullishOrEquivalent, mergeObjects, safeCompareEquality, hasNonNullValue, limitArray, mapFunctionOutputPair, lastValue, flattenArray, hasValueOrNotEmpty, filteredPage, invertMaybeBoolean, FIRST_PAGE, getNextPageNumber, reduceBooleansWithOrFn, MS_IN_SECOND } from '@dereekb/util';
2
+ import { getValueFromGetter, isMaybeSo, filterMaybeArrayValues, areEqualPOJOValues, convertToArray, asGetter, performTaskLoop, isMaybeNot, forEachWithArray, pushArrayItemsIntoArray, pushItemOrArrayItemsIntoArray, asArray, filterAndMapFunction, expirationDetails, objectKeysEqualityComparatorFunction, objectKeyEqualityComparatorFunction, asPromise, randomNumberFactory, mapsHaveSameKeys, mapKeysIntersectionObjectToArray, incrementingNumberFactory, filterUniqueFunction, build, cachedGetter, allKeyValueTuples, keyValueMapFactory, multiKeyValueMapFactory, timePeriodCounter, hasSameValues, compareEqualityWithValueFromItemsFunction, setContainsAllValues, setContainsAnyValue, setContainsNoneOfValue, searchStringFilterFunction, reduceBooleansWithAnd, toReadableError, reduceBooleansWithOr, valuesAreBothNullishOrEquivalent, mergeObjects, objectHasKey, safeCompareEquality, hasNonNullValue, limitArray, mapFunctionOutputPair, lastValue, flattenArray, hasValueOrNotEmpty, filteredPage, invertMaybeBoolean, FIRST_PAGE, getNextPageNumber, reduceBooleansWithOrFn, MS_IN_SECOND } from '@dereekb/util';
3
3
 
4
4
  function asObservable(valueOrObs) {
5
5
  if (isObservable(valueOrObs)) {
@@ -373,15 +373,12 @@ function switchMapOnBoolean(switchOnValue, obs, otherwise) {
373
373
  });
374
374
  }
375
375
  function filterIfObjectValuesUnchanged(input) {
376
- if (isObservable(input)) {
377
- return mergeMap(function(inputFilter) {
378
- return input.pipe(filterIfObjectValuesUnchanged(inputFilter));
379
- });
380
- } else {
381
- return filter(function(inputObject) {
382
- return !areEqualPOJOValues(input, inputObject);
383
- });
384
- }
376
+ var result = isObservable(input) ? mergeMap(function(inputFilter) {
377
+ return input.pipe(filterIfObjectValuesUnchanged(inputFilter));
378
+ }) : filter(function(inputObject) {
379
+ return !areEqualPOJOValues(input, inputObject);
380
+ });
381
+ return result;
385
382
  }
386
383
 
387
384
  function _array_like_to_array$a(arr, len) {
@@ -2873,16 +2870,16 @@ function _unsupported_iterable_to_array$4(o, minLen) {
2873
2870
  * @param state - the loading state to check (may be null/undefined)
2874
2871
  * @returns true if loading is complete
2875
2872
  */ function isLoadingStateFinishedLoading(state) {
2873
+ var result = false;
2876
2874
  if (state) {
2877
2875
  var loading = state.loading;
2878
2876
  if (loading === true) {
2879
- return false;
2877
+ result = false;
2880
2878
  } else {
2881
- return loading === false || Boolean(state.value || state.error) || state.value === null;
2879
+ result = loading === false || Boolean(state.value || state.error) || state.value === null;
2882
2880
  }
2883
- } else {
2884
- return false;
2885
2881
  }
2882
+ return result;
2886
2883
  }
2887
2884
  /**
2888
2885
  * Creates an idle {@link LoadingState} with `loading: false` and no value or error.
@@ -3019,11 +3016,8 @@ function beginLoading(state) {
3019
3016
  */ function isLoadingStateWithStateType(type) {
3020
3017
  var defaultResult = type === LoadingStateType.IDLE ? true : false;
3021
3018
  return function(state) {
3022
- if (state) {
3023
- return loadingStateType(state) === type;
3024
- } else {
3025
- return defaultResult;
3026
- }
3019
+ var result = state ? loadingStateType(state) === type : defaultResult;
3020
+ return result;
3027
3021
  };
3028
3022
  }
3029
3023
  /**
@@ -3066,11 +3060,8 @@ function beginLoading(state) {
3066
3060
  * @param state - the loading state to check
3067
3061
  * @returns true if the state has a defined (non-undefined) value
3068
3062
  */ function isLoadingStateWithDefinedValue(state) {
3069
- if (state) {
3070
- return state.value !== undefined;
3071
- } else {
3072
- return false;
3073
- }
3063
+ var result = state ? state.value !== undefined : false;
3064
+ return result;
3074
3065
  }
3075
3066
  /**
3076
3067
  * Type guard that checks whether a {@link LoadingState} has a non-null error, regardless of loading status.
@@ -3084,11 +3075,8 @@ function beginLoading(state) {
3084
3075
  * @param state - the loading state to check
3085
3076
  * @returns true if the state has an error
3086
3077
  */ function isLoadingStateWithError(state) {
3087
- if (state) {
3088
- return state.error != null;
3089
- } else {
3090
- return false;
3091
- }
3078
+ var result = state ? state.error != null : false;
3079
+ return result;
3092
3080
  }
3093
3081
  /**
3094
3082
  * Type guard that checks whether a {@link LoadingState} has finished loading and has a defined value.
@@ -3096,11 +3084,8 @@ function beginLoading(state) {
3096
3084
  * @param state - the loading state to check
3097
3085
  * @returns true if finished loading with a non-undefined value
3098
3086
  */ function isLoadingStateFinishedLoadingWithDefinedValue(state) {
3099
- if (state) {
3100
- return isLoadingStateFinishedLoading(state) && state.value !== undefined;
3101
- } else {
3102
- return false;
3103
- }
3087
+ var result = state ? isLoadingStateFinishedLoading(state) && state.value !== undefined : false;
3088
+ return result;
3104
3089
  }
3105
3090
  /**
3106
3091
  * Type guard that checks whether a {@link LoadingState} has finished loading and has an error.
@@ -3108,11 +3093,8 @@ function beginLoading(state) {
3108
3093
  * @param state - the loading state to check
3109
3094
  * @returns true if finished loading with an error
3110
3095
  */ function isLoadingStateFinishedLoadingWithError(state) {
3111
- if (state) {
3112
- return isLoadingStateFinishedLoading(state) && state.error != null;
3113
- } else {
3114
- return false;
3115
- }
3096
+ var result = state ? isLoadingStateFinishedLoading(state) && state.error != null : false;
3097
+ return result;
3116
3098
  }
3117
3099
  /**
3118
3100
  * Compares the metadata (page, loading, error) of two {@link PageLoadingState} instances for equivalence.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dereekb/rxjs",
3
- "version": "13.3.0",
3
+ "version": "13.4.0",
4
4
  "peerDependencies": {
5
5
  "rxjs": "^7.8.0",
6
- "@dereekb/util": "13.3.0"
6
+ "@dereekb/util": "13.4.0"
7
7
  },
8
8
  "exports": {
9
9
  "./package.json": "./package.json",
@@ -443,8 +443,8 @@ export declare function mergeLoadingStateWithValue<S extends LoadingState>(state
443
443
  export declare function mergeLoadingStateWithError<S extends LoadingState = LoadingState>(state: S, error?: ReadableDataError): S;
444
444
  export type MapMultipleLoadingStateValuesFn<T, X> = (input: X[]) => T;
445
445
  export interface MapMultipleLoadingStateResultsConfiguration<T, X, L extends LoadingState<X>[], R extends LoadingState<T>> {
446
- mapValues?: MapMultipleLoadingStateValuesFn<T, X>;
447
- mapState?: (input: L) => R;
446
+ readonly mapValues?: MapMultipleLoadingStateValuesFn<T, X>;
447
+ readonly mapState?: (input: L) => R;
448
448
  }
449
449
  /**
450
450
  * Maps multiple {@link LoadingState} results into a single state using a value mapping or state mapping function.
@@ -461,9 +461,9 @@ export declare function mapMultipleLoadingStateResults<T, X, L extends LoadingSt
461
461
  export type MapLoadingStateFn<A, B, L extends LoadingState<A> = LoadingState<A>, O extends LoadingState<B> = LoadingState<B>> = (input: L, value?: B) => O;
462
462
  export type MapLoadingStateValuesFn<A, B, L extends LoadingState<A> = LoadingState<A>> = (input: A, state: L) => B;
463
463
  export interface MapLoadingStateResultsConfiguration<A, B, L extends LoadingState<A> = LoadingState<A>, O extends LoadingState<B> = LoadingState<B>> {
464
- alwaysMapValue?: boolean;
465
- mapValue?: MapLoadingStateValuesFn<A, B, L>;
466
- mapState?: MapLoadingStateFn<A, B, L, O>;
464
+ readonly alwaysMapValue?: boolean;
465
+ readonly mapValue?: MapLoadingStateValuesFn<A, B, L>;
466
+ readonly mapState?: MapLoadingStateFn<A, B, L, O>;
467
467
  }
468
468
  /**
469
469
  * Maps the value of a single {@link LoadingState} to a new type using the provided configuration.
@@ -350,19 +350,19 @@ export interface DistinctLoadingStateConfig<L extends LoadingState> {
350
350
  *
351
351
  * By default this uses a DecisionFunction that returns true on undefined and false on null.
352
352
  */
353
- passRetainedValue?: (value: Maybe<LoadingStateValue<L>>, previousValue: Maybe<LoadingStateValue<L>>, state: L, previousState: Maybe<L>) => boolean;
353
+ readonly passRetainedValue?: (value: Maybe<LoadingStateValue<L>>, previousValue: Maybe<LoadingStateValue<L>>, state: L, previousState: Maybe<L>) => boolean;
354
354
  /**
355
355
  * Whether or not to compare the
356
356
  */
357
- compareOnUndefinedValue?: boolean;
357
+ readonly compareOnUndefinedValue?: boolean;
358
358
  /**
359
359
  * Used for comparing the values of the LoadingState.
360
360
  */
361
- valueComparator: EqualityComparatorFunction<Maybe<LoadingStateValue<L>>>;
361
+ readonly valueComparator: EqualityComparatorFunction<Maybe<LoadingStateValue<L>>>;
362
362
  /**
363
363
  * Used for comparing the metadata values of the LoadingState. By default uses isPageLoadingStateMetadataEqual.
364
364
  */
365
- metadataComparator?: EqualityComparatorFunction<Maybe<Partial<L>>>;
365
+ readonly metadataComparator?: EqualityComparatorFunction<Maybe<Partial<L>>>;
366
366
  }
367
367
  /**
368
368
  * A special `distinctUntilChanged`-like operator for {@link LoadingState} and {@link PageLoadingState}.
package/src/lib/lock.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { type ObservableOrValue } from './rxjs/getter';
2
2
  import { type Subscription, type Observable } from 'rxjs';
3
- import { type Destroyable, type Maybe } from '@dereekb/util';
3
+ import { type Destroyable, type Maybe, type Milliseconds, type Seconds } from '@dereekb/util';
4
4
  /**
5
5
  * Key used to identify a specific lock within a {@link LockSet}.
6
6
  */
@@ -24,9 +24,9 @@ export interface OnLockSetUnlockedConfig {
24
24
  /** Optional callback to invoke when the lock set unlocks or the timeout is reached. */
25
25
  readonly fn?: Maybe<OnLockSetUnlockedFunction>;
26
26
  /** Maximum time in milliseconds to wait for unlock before timing out. Defaults to 50 seconds. */
27
- readonly timeout?: Maybe<number>;
27
+ readonly timeout?: Maybe<Milliseconds>;
28
28
  /** Optional delay in milliseconds after the unlock is detected before invoking the callback. */
29
- readonly delayTime?: Maybe<number>;
29
+ readonly delayTime?: Maybe<Milliseconds>;
30
30
  }
31
31
  /**
32
32
  * Configuration for {@link LockSet.destroyOnNextUnlock}, excluding the lock set reference.
@@ -45,7 +45,7 @@ export interface SetLockedConfig {
45
45
  *
46
46
  * Only relevant for locking.
47
47
  */
48
- readonly duration?: number;
48
+ readonly duration?: Milliseconds;
49
49
  }
50
50
  /**
51
51
  * Default lock key used by {@link LockSet.lockForTime} when no custom key is provided.
@@ -132,20 +132,20 @@ export declare class LockSet implements Destroyable {
132
132
  * @param duration - optional auto-unlock duration in milliseconds (only used with boolean config)
133
133
  */
134
134
  setLocked(key: LockKey, config: SetLockedConfig): void;
135
- setLocked(key: LockKey, config: boolean, duration?: number): void;
135
+ setLocked(key: LockKey, config: boolean, duration?: Milliseconds): void;
136
136
  /**
137
137
  * Locks for a specified number of seconds using the default time lock key.
138
138
  *
139
139
  * @param seconds - duration in seconds
140
140
  */
141
- lockForSeconds(seconds: number): void;
141
+ lockForSeconds(seconds: Seconds): void;
142
142
  /**
143
143
  * Locks for a specified duration in milliseconds, automatically unlocking when the time elapses.
144
144
  *
145
145
  * @param milliseconds - lock duration
146
146
  * @param key - optional lock key, defaults to {@link DEFAULT_LOCK_SET_TIME_LOCK_KEY}
147
147
  */
148
- lockForTime(milliseconds: number, key?: LockKey): void;
148
+ lockForTime(milliseconds: Milliseconds, key?: LockKey): void;
149
149
  /**
150
150
  * Registers a lock observable under the given key. The lock is considered active when
151
151
  * the observable emits `true`. Empty observables are treated as unlocked.
@@ -178,7 +178,7 @@ export declare class LockSet implements Destroyable {
178
178
  * @param delayTime - optional delay in milliseconds after unlock before invoking the callback
179
179
  * @returns subscription that can be unsubscribed to cancel the wait
180
180
  */
181
- onNextUnlock(config: OnLockSetUnlockedFunction | Omit<OnLockSetUnlockedConfig, 'lockSet'>, delayTime?: number): Subscription;
181
+ onNextUnlock(config: OnLockSetUnlockedFunction | Omit<OnLockSetUnlockedConfig, 'lockSet'>, delayTime?: Milliseconds): Subscription;
182
182
  /**
183
183
  * Establishes a parent-child relationship where this lock set's locked state is propagated
184
184
  * to the parent. When this lock set is locked, the parent will also reflect a locked state.
@@ -204,7 +204,7 @@ export declare class LockSet implements Destroyable {
204
204
  * @param config - optional callback or configuration for the unlock wait
205
205
  * @param delayTime - optional delay in milliseconds after unlock before invoking the callback
206
206
  */
207
- destroyOnNextUnlock(config?: Maybe<DestroyOnNextUnlockConfig['fn'] | DestroyOnNextUnlockConfig>, delayTime?: number): void;
207
+ destroyOnNextUnlock(config?: Maybe<DestroyOnNextUnlockConfig['fn'] | DestroyOnNextUnlockConfig>, delayTime?: Milliseconds): void;
208
208
  /**
209
209
  * Completes all internal subjects, unsubscribes from the parent lock set, and marks this lock set as destroyed.
210
210
  */
@@ -1,4 +1,4 @@
1
- import { type CachedFactoryWithInput, type Destroyable } from '@dereekb/util';
1
+ import { type CachedFactoryWithInput, type Destroyable, type Milliseconds } from '@dereekb/util';
2
2
  import { type Observable, type Subject } from 'rxjs';
3
3
  /**
4
4
  * Default amount of throttle in milliseconds used by AsyncPusher.
@@ -25,19 +25,19 @@ export interface AsyncPusherConfig<T> {
25
25
  /**
26
26
  * Time to throttle each emission.
27
27
  */
28
- throttle?: number;
28
+ readonly throttle?: Milliseconds;
29
29
  /**
30
30
  * Whether or not to filter on distinct values.
31
31
  */
32
- distinct?: boolean;
32
+ readonly distinct?: boolean;
33
33
  /**
34
34
  * Configuration function to build onto the internal observable.
35
35
  */
36
- pipe?: (obs: Observable<T>) => Observable<T>;
36
+ readonly pipe?: (obs: Observable<T>) => Observable<T>;
37
37
  /**
38
38
  * (Optional) Observable to watch for cleaunup.
39
39
  */
40
- cleanupObs?: Observable<unknown>;
40
+ readonly cleanupObs?: Observable<unknown>;
41
41
  }
42
42
  /**
43
43
  * Creates an {@link AsyncPusher} — a callable function backed by a throttled {@link BehaviorSubject}.
@@ -1,5 +1,5 @@
1
1
  import { type MonoTypeOperatorFunction, type Observable, type OperatorFunction } from 'rxjs';
2
- import { type DecisionFunction, type GetterOrValue, type MapFunction, type Maybe, type MaybeSoStrict } from '@dereekb/util';
2
+ import { type DecisionFunction, type GetterOrValue, type MapFunction, type Maybe, type Milliseconds, type MaybeSoStrict } from '@dereekb/util';
3
3
  import { type MaybeObservableOrValueGetter, type ObservableOrValueGetter, type MaybeObservableOrValue } from './getter';
4
4
  import { type ObservableDecisionFunction } from './decision';
5
5
  /**
@@ -135,7 +135,7 @@ export declare function switchMapToDefault<T = unknown>(defaultObs: MaybeObserva
135
135
  export declare function switchMapToDefault<T = unknown>(defaultObs: ObservableOrValueGetter<T>): OperatorFunction<Maybe<T>, T>;
136
136
  export declare function switchMapToDefault<T = unknown>(defaultObs: MaybeObservableOrValueGetter<T>, useDefault?: SwitchMapToDefaultFilterFunction<T>): OperatorFunction<Maybe<T>, Maybe<T>>;
137
137
  export interface SwitchMapObjectConfig<T> {
138
- defaultGetter?: GetterOrValue<Maybe<T>>;
138
+ readonly defaultGetter?: GetterOrValue<Maybe<T>>;
139
139
  }
140
140
  /**
141
141
  * RxJS operator that resolves an observable/getter config input into a value, applying defaults
@@ -206,8 +206,8 @@ export declare function combineLatestMapFrom<A, B, C>(combineObs: Observable<B>,
206
206
  *
207
207
  * If the delay is not provided, or is falsy, then the second value is never emitted.
208
208
  */
209
- export declare function emitDelayObs<T>(startWith: T, endWith: T, delayTime: Maybe<number>): Observable<T>;
209
+ export declare function emitDelayObs<T>(startWith: T, endWith: T, delayTime: Maybe<Milliseconds>): Observable<T>;
210
210
  /**
211
211
  * Emits a value after a given delay after every new emission.
212
212
  */
213
- export declare function emitAfterDelay<T>(value: T, delayTime: number): MonoTypeOperatorFunction<T>;
213
+ export declare function emitAfterDelay<T>(value: T, delayTime: Milliseconds): MonoTypeOperatorFunction<T>;