Typescript function return type based on parameter properties

前端 未结 0 1974
有刺的猬
有刺的猬 2021-01-29 16:24

how can I create the proper typing for a function such that depending on the properties on its input parameters, I get the correct return type when calling this function?

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