( defaults: D extends Function ? never : D, overrides: O extends Function ? never : O, isRoot = true, )
| 1507 | } |
| 1508 | |
| 1509 | export function mergeConfig< |
| 1510 | D extends Record<string, any>, |
| 1511 | O extends Record<string, any>, |
| 1512 | >( |
| 1513 | defaults: D extends Function ? never : D, |
| 1514 | overrides: O extends Function ? never : O, |
| 1515 | isRoot = true, |
| 1516 | ): Record<string, any> { |
| 1517 | if (typeof defaults === 'function' || typeof overrides === 'function') { |
| 1518 | throw new Error(`Cannot merge config in form of callback`) |
| 1519 | } |
| 1520 | |
| 1521 | return mergeConfigRecursively(defaults, overrides, isRoot ? '' : '.') |
| 1522 | } |
| 1523 | |
| 1524 | export function mergeAlias( |
| 1525 | a?: AliasOptions, |
no test coverage detected