deepCopier.d.ts 842 B

123456789101112131415
  1. /**
  2. * Class containing a set of static utilities functions for deep copy.
  3. */
  4. export declare class DeepCopier {
  5. /**
  6. * Tries to copy an object by duplicating every property
  7. * @param source defines the source object
  8. * @param destination defines the target object
  9. * @param doNotCopyList defines a list of properties to avoid
  10. * @param mustCopyList defines a list of properties to copy (even if they start with _)
  11. * @param shallowCopyValues defines wether properties referencing objects (none cloneable) must be shallow copied (false by default)
  12. * @remarks shallowCopyValues will not instantite the copied values which makes it only usable for "JSON objects"
  13. */
  14. static DeepCopy(source: any, destination: any, doNotCopyList?: string[], mustCopyList?: string[], shallowCopyValues?: boolean): void;
  15. }