How can I pass the type of action to redux in TypeScript?

前端 未结 0 956
一生所求
一生所求 2021-01-25 16:10

I have a generic function that is to create an action. Actually the action type is created as a symbol but I would like to pass a string to define it to the action type.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题