Skip to content

Commit c2737b4

Browse files
authored
refactor(store): update create feature selector (#3198)
Closes #3197
1 parent 7a779e7 commit c2737b4

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

modules/store/src/feature_creator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function createFeature<
9898
NotAllowedFeatureStateCheck<FeatureState>
9999
): Feature<AppState, FeatureName, FeatureState> {
100100
const { name, reducer } = featureConfig;
101-
const featureSelector = createFeatureSelector<AppState, FeatureState>(name);
101+
const featureSelector = createFeatureSelector<FeatureState>(name);
102102
const nestedSelectors = createNestedSelectors(featureSelector, reducer);
103103

104104
return ({

projects/ngrx.io/content/examples/store-walkthrough/src/app/state/books.selectors.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const selectBooks = createSelector(
88
);
99

1010
export const selectCollectionState = createFeatureSelector<
11-
AppState,
1211
ReadonlyArray<string>
1312
>("collection");
1413

projects/ngrx.io/content/examples/testing-store/src/app/state/books.selectors.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const selectBooks = createSelector(
88
);
99

1010
export const selectCollectionState = createFeatureSelector<
11-
AppState,
1211
ReadonlyArray<string>
1312
>("collection");
1413

0 commit comments

Comments
 (0)