构造函数的类型如何定义? Laoniu_Andy 2023-06-08 43 阅读1分钟 interface ClassWithConstrutor { new (str: string): void; } function testOne(outerClass: ClassWithConstrutor) { const instance = new outerClass('new') }