style: lint cleanup
This commit is contained in:
1 parent
9a11325cc9
commit
1b2957d050
6 files changed
+35
-31
No files matched your search
@@ -10,7 +10,7 @@ export function mergeConfigSection<T extends Record<string, unknown>>(
|
||||
patch: Partial<T>,
|
||||
options: MergeSectionOptions<T> = {},
|
||||
): T {
|
||||
const next: Record<string, unknown> = { ...(base ?? {}) };
|
||||
const next: Record<string, unknown> = { ...(base ?? undefined) };
|
||||
for (const [key, value] of Object.entries(patch) as [keyof T, T[keyof T]][]) {
|
||||
if (value === undefined) {
|
||||
if (options.unsetOnUndefined?.includes(key)) {
|
||||
|
||||
Reference in new issue
Block a user