UNPKG

@elsikora/cladi

Version:

Zero-dependency TypeScript DI toolkit with typed tokens and scoped lifecycles.

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