Attempting to create a dynamic object within a function, but encountering recognition issues.
function1(object: object) { return new object(); }
The function is invoked as follows:
function1(Test)
'Test' represents a basic Class implementation.
export class Test {}
However, an error occurs stating:
Cannot use 'new' with an expression whose type lacks a call or construct signature.
Seeking any insights or suggestions to resolve this. Thank you!