How to type Redux actions and Redux reducers in TypeScript?

后端 未结 20 2060
旧时难觅i
旧时难觅i 2020-12-13 03:39

What is the best way to cast the action parameter in a redux reducer with typescript? There will be multiple action interfaces that can occur that all extend a

20条回答
提交回复
热议问题