How to properly use Mapped type for function signature

后端 未结 0 1479
借酒劲吻你
借酒劲吻你 2020-12-10 19:28

depending on the type of a parameter I\'d like to type the return. Similar to function overload, but using mapped types.

const requestX = async(
    id?: stri         


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