Currently, I am facing a challenge in creating a TypeScript definition for an external library that features a factory function named "new". The issue arises when attempting to add a function named "new" within the interface as it conflicts with the constructor's type.
Is there a workaround to avoid using the new keyword or make this type functional?
export interface Container {
//I need this functionality, but as a regular function and not the constructor
customFunction<T>(TConstructor: new () => T, locals?: object): T;
}