Get class name as type in TypeScript

前端 未结 0 1813
一向
一向 2021-01-30 01:16

In TypeScript 4.1, is it possible to get a class name or a function name as literal string type?

e.g.

class Foo { }
         


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