Typescript use generics to get type-value from interface using type-key parameter?

前端 未结 0 461
囚心锁ツ
囚心锁ツ 2021-02-14 00:00

I\'m trying to get better at Typescript types, and have a need for a type safe event emitter. I\'ve tried many different ways now but I just can\'t seem to get the types to reso

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