From 7cac8f335a5455b1a5c3ba4454729ac427d89201 Mon Sep 17 00:00:00 2001 From: buqiyuan <1743369777@qq.com> Date: Mon, 1 Aug 2022 18:36:08 +0800 Subject: [PATCH] fix: ts error --- .vscode/settings.json | 3 ++- src/workbench/browser/src/typings.d.ts | 24 +++++++++++------------- src/workbench/browser/tsconfig.json | 3 --- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index f5554535a..64873a126 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -11,5 +11,6 @@ "**/.angular/**/*.*": true, "**/*.code-search": true, "**/*.lock": true - } + }, + "typescript.tsdk": "node_modules\\typescript\\lib" } diff --git a/src/workbench/browser/src/typings.d.ts b/src/workbench/browser/src/typings.d.ts index 544409cf2..77c25eee8 100644 --- a/src/workbench/browser/src/typings.d.ts +++ b/src/workbench/browser/src/typings.d.ts @@ -5,17 +5,15 @@ import * as monaco from 'monaco-editor'; interface NodeModule { id: string; } -declare global { - interface Window { - process: any; - requirejs: any; - require: any; - angular: any; - eo: any; - BlobBuilder: any; - WebKitBlobBuilder: any; - MozBlobBuilder: any; - MSBlobBuilder: any; - monaco: typeof monaco; - } +interface Window { + process: any; + requirejs: any; + require: any; + angular: any; + eo: any; + BlobBuilder: any; + WebKitBlobBuilder: any; + MozBlobBuilder: any; + MSBlobBuilder: any; + monaco: typeof monaco; } diff --git a/src/workbench/browser/tsconfig.json b/src/workbench/browser/tsconfig.json index f327b5a77..bf306bf94 100644 --- a/src/workbench/browser/tsconfig.json +++ b/src/workbench/browser/tsconfig.json @@ -28,9 +28,6 @@ "dom" ] }, - "include": [ - "**/*.d.ts", - ], "exclude": [ "node_modules" ],