UNPKG

@rx-angular/state

Version:

@rx-angular/state is a light-weight, flexible, strongly typed and tested tool dedicated to reduce the complexity of managing component state and side effects in angular

28 lines 714 B
import { CompareFn } from './compare-fn'; /** * @description * The `KeyCompareMap` is used to configure custom comparison for defined keys. * * @example * const keyCompareMap = { * myKey: (o, n) => customCompare(o, n) * }; * const o$ = of({ * myKey: 5, * myOtherKey: 'bar' * }).pipe(distinctUntilSomeChanged(['myKey', 'myOtherKey'], keyCompareMap)); * * //or * * const o$ = of({ * myKey: 5, * myOtherKey: 'bar' * }).pipe(selectSlice(['myKey', 'myOtherKey'], keyCompareMap)); * * @docsPage interfaces * @docsCategory operators */ export type KeyCompareMap<T extends object> = { [K in keyof Partial<T>]: CompareFn<T[K]>; }; //# sourceMappingURL=key-compare-map.d.ts.map