是否可以在typescript中推断类的构造函数类型?我试过,但似乎没用:type Constructor<K> = K extends { new: infer T } ? T : any; 最佳答案 你能像这样通过类的构造函数来引用类类型吗?type Constructor<K> = { new(): K }; const x: Constructor<String> = String; const s = new x();