hyphenate,
isArray,
isFunction,
+ isObject,
isOn,
toNumber,
UnionToIntersection
}
if (!raw && !hasExtends) {
- cache.set(comp, null)
+ if (isObject(comp)) {
+ cache.set(comp, null)
+ }
return null
}
extend(normalized, raw)
}
- cache.set(comp, normalized)
+ if (isObject(comp)) {
+ cache.set(comp, normalized)
+ }
return normalized
}
}
mergeOptions(resolved, base, optionMergeStrategies)
}
-
- cache.set(base, resolved)
+ if (isObject(base)) {
+ cache.set(base, resolved)
+ }
return resolved
}
}
if (!raw && !hasExtends) {
- cache.set(comp, EMPTY_ARR as any)
+ if (isObject(comp)) {
+ cache.set(comp, EMPTY_ARR as any)
+ }
return EMPTY_ARR as any
}
}
const res: NormalizedPropsOptions = [normalized, needCastKeys]
- cache.set(comp, res)
+ if (isObject(comp)) {
+ cache.set(comp, res)
+ }
return res
}