Files
med-notes/.pnpm-store/v10/files/4b/bc56f5ced6a9a249ad4ffcb59bef805e194904083f2ca3f52310e3c8e726f494ed5882ad2687a74a454c13d1d9547c2e147631d4c32077cedb49320fdb5781
2025-06-26 03:35:15 +00:00

12 lines
635 B
Plaintext

/**
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;