Differentiating return type based on argument

后端 未结 0 1752
南旧
南旧 2021-01-26 12:30

I\'m trying to type a function that either accepts a string or string[] and returns either a bool or bool[] respectively. I\'ve tried both using generics types and overload but

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