UNPKG

@mikro-orm/core

Version:

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.

7 lines (6 loc) 275 B
/** * Inspired by https://github.com/pvorb/clone but simplified and never tries to * clone `EventEmitter`s to get around https://github.com/mikro-orm/mikro-orm/issues/2748 * @internal */ export declare function clone<T>(parent: T, respectCustomCloneMethod?: boolean): T;