..

How to remove vscode's decorator warning?

  • Create a tsconfig.json under root directory.
  • Add following code to tsconfig.json
{
  "compilerOptions": {
    "experimentalDecorators": true,
    "allowJs": true
  }
}
  • Restart vscode