Includes type definitions to handle deep merging of nested objects and overwriting arrays.
The types ensure that primitive values from the second argument (U) overwrite those in the first (T), while arrays are replaced entirely, not merged element-wise.
Includes type definitions to handle deep merging of nested objects and overwriting arrays.
The types ensure that primitive values from the second argument (U) overwrite those in the first (T), while arrays are replaced entirely, not merged element-wise.
Example:
Also, adds JSDoc to the function type declarations for documentation.