add method to get original configs for stringifying

This commit is contained in:
Hri7566 2024-10-23 02:31:21 -04:00
parent 41a8f20e50
commit 38bdafdf13
1 changed files with 7 additions and 0 deletions

View File

@ -158,4 +158,11 @@ export class ConfigManager {
}
) as T;
}
/**
* Get the in-memory config's value directly from the map (not a proxy object)
*/
public static getOriginalConfigObject<T>(configPath: string) {
return this.configCache.get(configPath) as T;
}
}