index.d.ts 635 B

1234567891011
  1. /**
  2. 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.
  3. @param destination - The object to receive properties.
  4. @param source - The object providing properties.
  5. @param overwrite - Optional boolean to control overwriting of existing properties. Defaults to true.
  6. @returns The modified destination object.
  7. */
  8. declare function mergeDescriptors<T, U>(destination: T, source: U, overwrite?: boolean): T & U;
  9. export = mergeDescriptors;