( a: ComponentPropsOptions | EmitsOptions, b: ComponentPropsOptions | EmitsOptions, )
| 479 | * @internal |
| 480 | */ |
| 481 | export function mergeModels( |
| 482 | a: ComponentPropsOptions | EmitsOptions, |
| 483 | b: ComponentPropsOptions | EmitsOptions, |
| 484 | ): ComponentPropsOptions | EmitsOptions { |
| 485 | if (!a || !b) return a || b |
| 486 | if (isArray(a) && isArray(b)) return a.concat(b) |
| 487 | return extend({}, normalizePropsOrEmits(a), normalizePropsOrEmits(b)) |
| 488 | } |
| 489 | |
| 490 | /** |
| 491 | * Used to create a proxy for the rest element when destructuring props with |
no test coverage detected