From 4b48e51f95f3212982d262adc74e2e9b1ce9615f Mon Sep 17 00:00:00 2001 From: erhise Date: Wed, 22 Jan 2020 21:32:12 +0100 Subject: [PATCH] refactor(example): remove explicit typings and change featureName key --- projects/example-app/src/app/auth/reducers/index.ts | 4 ++-- projects/example-app/src/app/books/reducers/index.ts | 4 ++-- projects/example-app/src/app/reducers/index.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/example-app/src/app/auth/reducers/index.ts b/projects/example-app/src/app/auth/reducers/index.ts index 8dc2860334..d11c9654a3 100644 --- a/projects/example-app/src/app/auth/reducers/index.ts +++ b/projects/example-app/src/app/auth/reducers/index.ts @@ -32,7 +32,7 @@ export const selectAuthState = createFeatureSelector( export const selectAuthStatusState = createSelector( selectAuthState, - (state: AuthState) => state.status + state => state.status ); export const selectUser = createSelector( selectAuthStatusState, @@ -42,7 +42,7 @@ export const selectLoggedIn = createSelector(selectUser, user => !!user); export const selectLoginPageState = createSelector( selectAuthState, - (state: AuthState) => state.loginPage + state => state.loginPage ); export const selectLoginPageError = createSelector( selectLoginPageState, diff --git a/projects/example-app/src/app/books/reducers/index.ts b/projects/example-app/src/app/books/reducers/index.ts index 3392bddd38..86ae6c1a38 100644 --- a/projects/example-app/src/app/books/reducers/index.ts +++ b/projects/example-app/src/app/books/reducers/index.ts @@ -103,7 +103,7 @@ export const selectSelectedBook = createSelector( */ export const selectSearchState = createSelector( selectBooksState, - (state: BooksState) => state.search + state => state.search ); export const selectSearchBookIds = createSelector( @@ -139,7 +139,7 @@ export const selectSearchResults = createSelector( export const selectCollectionState = createSelector( selectBooksState, - (state: BooksState) => state.collection + state => state.collection ); export const selectCollectionLoaded = createSelector( diff --git a/projects/example-app/src/app/reducers/index.ts b/projects/example-app/src/app/reducers/index.ts index abcaa27a29..ce76a4907a 100644 --- a/projects/example-app/src/app/reducers/index.ts +++ b/projects/example-app/src/app/reducers/index.ts @@ -69,7 +69,7 @@ export const metaReducers: MetaReducer[] = !environment.production * Layout Reducers */ export const selectLayoutState = createFeatureSelector( - 'layout' + fromLayout.layoutFeatureKey ); export const selecthowSidenav = createSelector(