How TS generics return record or simple value according to type of param?

前端 未结 0 591
庸人自扰
庸人自扰 2020-12-23 20:04

I would like to write a function whit proper type support, and with the following requirements:

  • When key is passed as single string, the return val
相关标签:
回答
  • 消灭零回复
提交回复
热议问题