chore: format

This commit is contained in:
Peter Steinberger committed 2026-01-09 16:55:51 +01:00
1 parent fd9e2d3def
commit be48233bc4
4 files changed
+29 -16

No files matched your search

+8 -2
View File
@@ -81,13 +81,19 @@ export function resetConfigOverrides(): void {
overrides = {};
}
export function setConfigOverride(pathRaw: string, value: unknown): {
export function setConfigOverride(
pathRaw: string,
value: unknown,
): {
ok: boolean;
error?: string;
} {
const path = parsePath(pathRaw);
if (!path) {
return { ok: false, error: "Invalid path. Use dot notation (e.g. foo.bar)." };
return {
ok: false,
error: "Invalid path. Use dot notation (e.g. foo.bar).",
};
}
setOverrideAtPath(overrides, path, value);
return { ok: true };