type SomeObject={
name: string;
}

type SomeConstructor = {
new (s: string): SomeObject;
};
function fn(ctor: SomeConstructor) {
return new ctor("hello");
}

class MyConstructor implements SomeObject{
name: string;
constructor(name: string){
this.name = name;
}
}

console.log(fn(MyConstructor));