git-subtree-dir: main-site git-subtree-mainline: 4d1daa39101c0a85ca6d916f1c31139faf39632a git-subtree-split: 5cefb4d1618bc54ae0e86830421a8c911900302c
12 lines
635 B
TypeScript
12 lines
635 B
TypeScript
/**
|
|
Merges "own" properties from a source to a destination object, including non-enumerable and accessor-defined properties. It retains original values and descriptors, ensuring the destination receives a complete and accurate copy of the source's properties.
|
|
|
|
@param destination - The object to receive properties.
|
|
@param source - The object providing properties.
|
|
@param overwrite - Optional boolean to control overwriting of existing properties. Defaults to true.
|
|
@returns The modified destination object.
|
|
*/
|
|
declare function mergeDescriptors<T, U>(destination: T, source: U, overwrite?: boolean): T & U;
|
|
|
|
export = mergeDescriptors;
|