Skip to content

Commit

Permalink
Update readme for ngrx store 4.0.3
Browse files Browse the repository at this point in the history
ngrx/platform#270 (landed in store 4.0.3) changed the type signature of the meta reducers array.
This fixes the resulting type conflict with the usage example.
  • Loading branch information
nhaesler authored Sep 26, 2017
1 parent 0507f9d commit 11cc4e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install ngrx-store-localstorage --save
```ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { StoreModule, ActionReducerMap, ActionReducer } from '@ngrx/store';
import { StoreModule, ActionReducerMap, ActionReducer, MetaReducer } from '@ngrx/store';
import { localStorageSync } from 'ngrx-store-localstorage';
import { reducers } from './reducers';

Expand All @@ -25,7 +25,7 @@ const reducers: ActionReducerMap<IState> = {todos, visibilityFilter};
export function localStorageSyncReducer(reducer: ActionReducer<any>): ActionReducer<any> {
return localStorageSync({keys: ['todos']})(reducer);
}
const metaReducers: Array<ActionReducer<any, any>> = [localStorageSyncReducer];
const metaReducers: Array<MetaReducer<any, any>> = [localStorageSyncReducer];

@NgModule({
imports: [
Expand Down

0 comments on commit 11cc4e7

Please sign in to comment.