mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
QoL changes & code formatting
This commit is contained in:
@@ -40,11 +40,10 @@ export interface Configuration {
|
||||
}
|
||||
|
||||
export async function setConfigOption(key: string, value: any): Promise<void> {
|
||||
const config = await getConfig()
|
||||
|
||||
Object.assign(config, { [key]: value })
|
||||
const config: any = await getConfig()
|
||||
config[key] = value
|
||||
|
||||
await saveConfig(config)
|
||||
await saveConfig(<Configuration> config)
|
||||
}
|
||||
|
||||
export async function getConfigOption(key: string): Promise<any> {
|
||||
|
||||
Reference in New Issue
Block a user