Browse Source

fix sliceUpdate selector type

pull/6866/head
Arman Ozak 6 years ago
parent
commit
27fb31e530
  1. 2
      npm/ng-packs/packages/core/src/lib/utils/internal-store-utils.ts

2
npm/ng-packs/packages/core/src/lib/utils/internal-store-utils.ts

@ -19,7 +19,7 @@ export class InternalStore<State> {
) => this.state$.pipe(map(selector), distinctUntilChanged(compareFn));
sliceUpdate = <Slice>(
selector: (state: DeepPartial<State>) => Slice,
selector: (state: State) => Slice,
filterFn = (x: Slice) => x !== undefined,
) => this.update$.pipe(map(selector), filter(filterFn));

Loading…
Cancel
Save