Typescript doesnt infer type even if field “type” is const

前端 未结 0 483
长发绾君心
长发绾君心 2021-02-06 03:42

I have a method request that takes a message with a type and returns an answer with the same type. The actual message and answer should be inferred by typescript. H

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