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
With the original example (containing parenthesis, I was getting an error in the setState() function:
Argument of type '(state: AnimalsStateModel) => { return: AnimalsStateModel; }' is not assignable to parameter of type 'AnimalsStateModel | StateOperator<AnimalsStateModel>'.
Type '(state: AnimalsStateModel) => { return: AnimalsStateModel; }' is not assignable to type 'StateOperator<AnimalsStateModel>'.
Property 'zebra' is missing in type '{ return: AnimalsStateModel; }' but required in type 'AnimalsStateModel'.ts(2345
I'm not really sure but as for declaration:
can it be used as:
?
or should it be:
?
or even:
?
The text was updated successfully, but these errors were encountered: