Narrowing possible return types inside a function based on parameter

前端 未结 0 690
生来不讨喜
生来不讨喜 2021-01-13 17:43

I\'d like to write a function that takes an interface and one of the keys in the interface, then returns the type in the value field on the corresponding interf

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