fix: properly support default/fallback in arktype
This commit is contained in:
parent
769674ab07
commit
d25e5fd883
3 changed files with 26 additions and 4 deletions
|
|
@ -209,7 +209,7 @@ function deepMerge<T>(target: T, source: DeepPartial<T>): T {
|
|||
|
||||
for (const key in source) {
|
||||
const val = source[key];
|
||||
if (val === undefined) {
|
||||
if (val === undefined || val === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue