UNPKG

@elsikora/cladi

Version:

ClaDI is a library for creating and managing classes in TypeScript.

10 lines 426 B
/** * Utility method to safely deep clone objects that may contain functions. * Unlike structuredClone, this can handle functions by preserving their reference * but cloning everything else. * @param {T} source Object to clone * @returns {T} A deep clone of the object * @template T Type of object to clone */ export declare function safeDeepClone<T>(source: T): T; //# sourceMappingURL=safe-deep-clone.utility.d.ts.map