How to declare a getProperty function in Typescript correctly?

前端 未结 0 1805
眼角桃花
眼角桃花 2021-01-12 00:51

I tried to declare a prop(propName, obj) function, but the type of returnValue have some inconsistencies.

I found a declaration on TS offical website whi

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