Restrict generic key type based on lookup type in TypeScript

后端 未结 0 1514
没有蜡笔的小新
没有蜡笔的小新 2020-12-11 02:49

I\'m working on a function that takes two type parameters. One extends a Record type and the other is a key of the first type. Is there a way I can restrict the

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