The equivalent for what you’re asking in typescript is the type { new(): Class }
, for example:
class A {}
function create(ctor: { new(): A }): A {
return new ctor();
}
let a = create(A); // a is instanceof A
The code above will allow only classes whose constructor has no argument. If you want any class, use new (...args: any[]) => Class