more lint fixes

This commit is contained in:
Boki 2025-06-20 09:10:57 -04:00
parent 3e545cdaa9
commit 67c073e4f2
7 changed files with 29 additions and 15 deletions

View file

@ -98,11 +98,11 @@ export class ConfigManager<T = Record<string, unknown>> {
getValue<R = unknown>(path: string): R {
const config = this.get();
const keys = path.split('.');
let value: any = config;
let value: unknown = config;
for (const key of keys) {
if (value && typeof value === 'object' && key in value) {
value = value[key];
value = (value as Record<string, unknown>)[key];
} else {
throw new ConfigError(`Configuration key not found: ${path}`);
}