WIP: real-time collab support

This commit is contained in:
Zef Hemel
2022-10-25 18:50:07 +02:00
parent f04f429c29
commit 590440748b
11 changed files with 138 additions and 10 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export async function readSettings<T extends object>(settings: T): Promise<T> {
const allSettings = (await readYamlPage(SETTINGS_PAGE, ["yaml"])) || {};
// TODO: I'm sure there's a better way to type this than "any"
const collectedSettings: any = {};
for (let [key, defaultVal] of Object.entries(settings)) {
for (const [key, defaultVal] of Object.entries(settings)) {
if (key in allSettings) {
collectedSettings[key] = allSettings[key];
} else {