redux-promise-middleware-actions icon indicating copy to clipboard operation
redux-promise-middleware-actions copied to clipboard

createReducer allows setting unknown fields to new state

Open sregg opened this issue 4 years ago • 2 comments

image

See line 17 nane: action.payload.name, TS is nit complaining about that I typed nane instead of name.

If I add the type manually:

image

Then I see the error fine.

Is there a way to have the error without the manual type?

Thanks

sregg avatar Jan 15 '20 21:01 sregg