( resolver: ResolverCache, prop: string, value: unknown )
| 371 | } |
| 372 | |
| 373 | function subGetTarget( |
| 374 | resolver: ResolverCache, |
| 375 | prop: string, |
| 376 | value: unknown |
| 377 | ) { |
| 378 | const parent = resolver._getTarget(); |
| 379 | if (!(prop in parent)) { |
| 380 | parent[prop] = {}; |
| 381 | } |
| 382 | const target = parent[prop]; |
| 383 | if (isArray(target) && isObject(value)) { |
| 384 | // For array of objects, the object is used to store updated values |
| 385 | return value; |
| 386 | } |
| 387 | return target || {}; |
| 388 | } |
| 389 | |
| 390 | function _resolveWithPrefixes( |
| 391 | prop: string, |
no test coverage detected
searching dependent graphs…