Get type from a class-constructor in TypeScript?

前端 未结 0 1984
梦如初夏
梦如初夏 2020-12-09 06:11

Is it possible to extract a type from a class-constructor?

Instead of:

function passValues( values:T ){         


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