Dynamic return type based on an array argument

前端 未结 0 1617
名媛妹妹
名媛妹妹 2021-02-02 07:25

I\'m trying to write a function that will return an object whose keys are going to be the same as the values of the input array:

type PathParam = \'userId\' | \'g         


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