How to make TypeScript type check object literals with dynamic keys?

后端 未结 0 977
囚心锁ツ
囚心锁ツ 2020-12-07 20:44

I\'m a bit confused on how TypeScript performs type checking when using dynamic keys in object literals. Consider the following two functions returning a copy of an object:<

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