Overloading union types in TypeScript

前端 未结 0 1092
感动是毒
感动是毒 2021-01-06 01:29

I want to define a function f such that arguments and return types are union types but they are tied, i.e. when you call f(anInputType) yo

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