解決vscode「experimentalDecorators」報錯

How to remove experimentalDecorators warning in VSCode

參考:https://ihatetomatoes.net/how-to-remove-experimentaldecorators-warning-in-vscode/json

在根目錄添加一個tsconfig.json文件.net

文件裏寫下以下配置:code

{
    "compilerOptions": {
        "experimentalDecorators": true,
        "allowJs": true
    }
}

如此vscode就再也不會有該報錯rem