Address code review feedback - improve code quality

Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-07 04:52:22 +00:00
parent 2edf235941
commit 66ba8b7ee8
3 changed files with 21 additions and 80 deletions

View File

@@ -19,7 +19,7 @@ export function compileToES5(sourceCode, fileName = 'script.ts') {
module: ts.ModuleKind.None, // 不使用模块系统
lib: ['lib.es5.d.ts', 'lib.dom.d.ts'], // 包含ES5和DOM类型定义
removeComments: false, // 保留注释
noEmitOnError: false, // 即使有错误生成代码
noEmitOnError: true, // 有错误时不生成代码
noImplicitAny: false, // 允许隐式any类型
strictNullChecks: false, // 不进行严格的null检查
suppressImplicitAnyIndexErrors: true, // 抑制隐式any索引错误