增强后端 TypeScript 严格类型检查
This commit is contained in:
@@ -354,5 +354,10 @@ function setConfigValue(
|
||||
current = current[key] as Record<string, unknown>;
|
||||
}
|
||||
|
||||
current[configPath[configPath.length - 1]] = value;
|
||||
const lastKey = configPath[configPath.length - 1];
|
||||
if (!lastKey) {
|
||||
return;
|
||||
}
|
||||
|
||||
current[lastKey] = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user