feat(core): 启用 TypeScript 最严格的类型检查 (#199)
* feat(core): 启用 TypeScript 最严格的类型检查 * ci: 配置 Codecov 以适应类型安全改进 * fix(core): 修复 CodeQL 安全警告 * fix(core): eslint.config.mjs
This commit is contained in:
@@ -235,7 +235,7 @@ export class DebugManager implements IService, IUpdatable {
|
||||
}
|
||||
}
|
||||
|
||||
public update(deltaTime?: number): void {
|
||||
public update(_deltaTime?: number): void {
|
||||
if (!this.isRunning || !this.config.enabled) return;
|
||||
|
||||
this.frameCounter++;
|
||||
@@ -728,7 +728,7 @@ export class DebugManager implements IService, IUpdatable {
|
||||
const keys = Object.keys(system);
|
||||
for (let i = 0; i < Math.min(keys.length, 15); i++) {
|
||||
const key = keys[i];
|
||||
if (key === 'entities' || key === 'scene' || key === 'constructor') continue;
|
||||
if (!key || key === 'entities' || key === 'scene' || key === 'constructor') continue;
|
||||
|
||||
const value = (system as Record<string, unknown>)[key];
|
||||
size += key.length * 2;
|
||||
|
||||
Reference in New Issue
Block a user