Mutate input
This commit is contained in:
parent
b1689b38c2
commit
21a387f4fe
|
@ -99,7 +99,8 @@ export async function processObject<T extends Record<string, any>>(
|
|||
} else if (typeof val === "object") {
|
||||
parsedValue = await processObject(object[key], context, opts)
|
||||
}
|
||||
object = { ...object, [key]: parsedValue }
|
||||
|
||||
;(object as Record<string, any>)[key] = parsedValue
|
||||
}
|
||||
}
|
||||
return object
|
||||
|
|
Loading…
Reference in New Issue