const TestConstructorFunction = function (this: any, a: any, b: any) { this.a = a; this.b = b; }; let test1 = new (TestConstructorFunction as any)(1, 2);