Unable to use enum value discriminated union to narrow generic type callback and invoke it

后端 未结 0 658
小鲜肉
小鲜肉 2020-12-02 05:43

Is there a way to narrow a generic type, a callback, using the value of an enum variable? And then invoke it?

I\'m not sure why the discriminated union is not working

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