In my Typescript/Angular project, I have the following interface:
export interface MyInterface {
new (helper: MyInterfaceHelpers);
}
After compiling the project, no errors are shown by the Typescript compiler. However, VSCode highlights it with squiggly lines and displays an error message:
Construct signature, which lacks a return-type annotation, implicitly has an 'any' return type.ts(7013)
Why does VS Code show this complaint while Typescript doesn't? Where is this discrepancy in error checking coming from? And more importantly, how can I stop VS Code from complaining about it?