(data: unknown)
| 51 | } |
| 52 | |
| 53 | function normalizeLoadedConfig(data: unknown) { |
| 54 | if (!isRecord(data)) return data |
| 55 | const copy = { ...data } |
| 56 | const hadLegacy = "theme" in copy || "keybinds" in copy || "tui" in copy |
| 57 | if (!hadLegacy) return copy |
| 58 | delete copy.theme |
| 59 | delete copy.keybinds |
| 60 | delete copy.tui |
| 61 | return copy |
| 62 | } |
| 63 | |
| 64 | async function substituteWellKnownRemoteConfig(input: { |
| 65 | value: unknown |