TypeScript: How to type object rest spread for any keys in function

前端 未结 0 1731
广开言路
广开言路 2021-02-14 02:50

I have a function that takes an object and returns an object. It returns the whole incoming object, but adds a key. The shape of the object is unknown, so it could have any keys

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