diff --git a/modules/store/spec/selector.spec.ts b/modules/store/spec/selector.spec.ts index 4a01083c09..68aefe0635 100644 --- a/modules/store/spec/selector.spec.ts +++ b/modules/store/spec/selector.spec.ts @@ -45,7 +45,7 @@ describe('Selectors', () => { const projectFn = jasmine.createSpy('projectionFn'); const selector = createSelector(incrementOne, incrementTwo, projectFn); - selector.resultFunc('', ''); + selector.projector('', ''); expect(incrementOne).not.toHaveBeenCalled(); expect(incrementTwo).not.toHaveBeenCalled(); diff --git a/modules/store/src/selector.ts b/modules/store/src/selector.ts index bbf8eae24e..8f42733dd3 100644 --- a/modules/store/src/selector.ts +++ b/modules/store/src/selector.ts @@ -5,7 +5,7 @@ export type AnyFn = (...args: any[]) => any; export interface MemoizedSelector extends Selector { release(): void; - resultFunc: AnyFn; + projector: AnyFn; } export function memoize(t: AnyFn): { memoized: AnyFn; reset: () => void } { @@ -135,7 +135,7 @@ export function createSelector(...args: any[]): Selector { return Object.assign(memoizedState.memoized, { release, - resultFunc: memoizedProjector.memoized, + projector: memoizedProjector.memoized, }); } @@ -146,5 +146,5 @@ export function createFeatureSelector( return state[featureName]; }); - return Object.assign(memoized, { release: reset, resultFunc: memoized }); + return Object.assign(memoized, { release: reset, projector: memoized }); }