Does TypeScript allow one to map typings from an array of keys to an object with keys?

后端 未结 0 1470
执笔经年
执笔经年 2021-02-20 03:03

I\'m trying to add types for a library with an interesting API. To simplify the problem, it\'s a function that takes this:

const payload = {
  returns: {
    user         


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