You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See, the function addTodo, is meant to return AddTodo, who's property, type should be typeof Actions.ADD_TODO, instead, it returns Actions.COMPLETE_TODO. This is invalid.
The text was updated successfully, but these errors were encountered:
sargun
changed the title
No error for invalid returned type
No error for invalid returned type; Type being inferred incorrectly
Jun 6, 2017
See, the function
addTodo
, is meant to returnAddTodo
, who's property,type
should betypeof Actions.ADD_TODO
, instead, it returnsActions.COMPLETE_TODO
. This is invalid.The text was updated successfully, but these errors were encountered: