(source: unknown, target: {})
| 434 | } |
| 435 | |
| 436 | function deepCopyMetadata(source: unknown, target: {}) { |
| 437 | let metadata; |
| 438 | if (target instanceof Serializable) { |
| 439 | metadata = target.getClassMetadata(); |
| 440 | } else if (source instanceof Serializable) { |
| 441 | metadata = source.getClassMetadata(); |
| 442 | } else { |
| 443 | throw new Error('Cannot find ClassMetadata.'); |
| 444 | } |
| 445 | return metadata; |
| 446 | } |
| 447 | |
| 448 | /** |
| 449 | * Returns whether or not the two serializable objects are deeply equal. The |
no test coverage detected