TypeScript: Map certain types inside function argument types w/out intermediate type parameters

前端 未结 0 1589
悲哀的现实
悲哀的现实 2020-12-06 03:53

For example, this works as I expected: Playground #1

const f = (
  arg: {
    [K in keyof A]: A[K]
  }
) =>         


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