当我通过vscode在一个有角度的项目中打开ts源时,没有错误消息。
let toolbox = {
'show': true,
'feature': {}
};
if (saveAsImage) Object.assign(toolbox.feature, { saveAsImage: {} });
if (restore) toolbox.feature['restore'] = {};
但是当我将此源文件(仅此ts源文件)复制到其他位置并通过vscode打开它时,会出现错误消息。
if (restore) toolbox.feature['restore'] = {};
如果我需要修改角度配置文件以打开错误消息或修改vscode配置文件?
打字稿版本3.9.5
角度版本10.0.2