Skip to content

Commit

Permalink
refactor(example): remove explicit typing in selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
erhise committed Jan 21, 2020
1 parent 55ab47c commit a6a237e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions projects/example-app/src/app/auth/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const selectAuthState = createFeatureSelector<State, AuthState>(

export const selectAuthStatusState = createSelector(
selectAuthState,
(state: AuthState) => state[fromAuth.statusFeatureKey]
state => state[fromAuth.statusFeatureKey]
);
export const selectUser = createSelector(
selectAuthStatusState,
Expand All @@ -42,7 +42,7 @@ export const selectLoggedIn = createSelector(selectUser, user => !!user);

export const selectLoginPageState = createSelector(
selectAuthState,
(state: AuthState) => state[fromLoginPage.loginPageFeatureKey]
state => state[fromLoginPage.loginPageFeatureKey]
);
export const selectLoginPageError = createSelector(
selectLoginPageState,
Expand Down
4 changes: 2 additions & 2 deletions projects/example-app/src/app/books/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const selectSelectedBook = createSelector(
*/
export const selectSearchState = createSelector(
selectBooksState,
(state: BooksState) => state[fromSearch.searchFeatureKey]
state => state[fromSearch.searchFeatureKey]
);

export const selectSearchBookIds = createSelector(
Expand Down Expand Up @@ -139,7 +139,7 @@ export const selectSearchResults = createSelector(

export const selectCollectionState = createSelector(
selectBooksState,
(state: BooksState) => state[fromCollection.collectionFeatureKey]
state => state[fromCollection.collectionFeatureKey]
);

export const selectCollectionLoaded = createSelector(
Expand Down

0 comments on commit a6a237e

Please sign in to comment.