TypeScript Version: 2.4.1
Code
import { Component } from "@angular/core";
export function MockComponent(options: Component): Component {
let metadata: Component = {
selector: options.selector,
template: options.template || "",
inputs: options.inputs,
outputs: options.outputs
};
return Component(metadata)(class {});
}
Expected behavior:
Actual behavior:

This was working with the previous version
Closing this issue as it seems to be something with the new update of Visual Studio Code
Got same error but in terminal, for me it seems like it's not a Visual Studio Code issue
You can find temp solution of problem in this issue:
https://github.com/cnunciato/ng2-mock-component/issues/8
I got same error I am using "typescript": "2.6.2"
Type 'typeof UserMgmtComponent' has no properties in common with type 'Component'.
with old versions it was working fine for me.
did any one find any solution for it.
See https://blog.mariusschulz.com/2017/12/01/typescript-2-4-weak-type-detection for an explanation of this message
Most helpful comment
Got same error but in terminal, for me it seems like it's not a Visual Studio Code issue