This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
handleAction allows you to return a state object with any additional properties #123
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
This should fail because
otherNum
is not part of theState
interface:Typescript only displays a warning when the return type of
State
is explicitly defined but it would be nice to have it happen automaticallyThe text was updated successfully, but these errors were encountered: