How do I return the same type that is passed into a function?

后端 未结 0 939
孤街浪徒
孤街浪徒 2021-01-17 03:52

I have a function which can receive a value of type either TLocation or {height: number, width: number}.

TLocation is defined a

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