I need to print data in the store using ngrx. but, I'm getting this error while defining StoreModule.forRoot({customers:reducer}). In the terminal it says
StoreModule.forRoot({customers:reducer})
Type '(state: Customer[] | undefined, action: Actions) => Customer[]' is not assignable to type 'ActionReducer<Customer[], Action>'. Types of parameters 'action' and 'action' are incompatible. Type 'Action' is not assignable to type 'Actions'. Property 'payload' is missing in type 'Action' but required in type 'RemoveCard'.
1.4m articles
1.4m replys
5 comments
56.9k users