Typescript overloads using an argument value to define the type of another parameter

前端 未结 0 1847
攒了一身酷
攒了一身酷 2020-12-30 00:54

I have this piece of code (simplified example):

Typescript playground

It\'s basically an overloaded function that might get 3 different types of object, and wi

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