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
{{ message }}
This repository was archived by the owner on Feb 3, 2020. It is now read-only.
// action payload type is '{}' which is almost as bad as anyconstanyAction=createAction('increment');
I think it would be safer to default to void or somehow force user to specifying type parameter and be explicit about using any:
constvoidAction=createAction('increment');// same as using <void>// orconstillegalAction=createAction('increment');//compile error// still possible but explicitconstanyAction=createAction<any>('increment');
Tested with typescript 3.4.5 and all strict rules enabled.