error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type. code example
Example: new expression typescript
const TestConstructorFunction = function (this: any, a: any, b: any) {
this.a = a;
this.b = b;
};
let test1 = new (TestConstructorFunction as any)(1, 2);