Is it possible to constrain the values of an object literal while still being able to infer the exact keys of that object later?

后端 未结 0 1964
-上瘾入骨i
-上瘾入骨i 2020-11-22 08:52

I\'m running into a problem where trying to use a Typescript type with an index signature to constrain the values of an object literal destroys the ability, later o

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