Files
klz-cables.com/.pnpm-store/v10/files/02/dfb1f19ff17303c0e65459778b56e5f4646c432729009175a25ac2251036d8d4515945a7795797d0d3cb5ce2726e71edd7d0108bd88461a98cb8316b2cce69
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

22 lines
1.2 KiB
Plaintext

import type { JsonValue } from '../types/index.js';
export declare const deepCopyObject: <T>(o: T) => T;
/**
* A deepCopyObject implementation which only works for JSON objects and arrays, and is faster than
* JSON.parse(JSON.stringify(obj))
*
* @param value The JSON value to be cloned. There are two invariants. 1) It must not contain circles
* as JSON does not allow it. This function will cause infinite loop for such values by
* design. 2) It must contain JSON values only. Other values like `Date`, `Regexp`, `Map`,
* `Set`, `Buffer`, ... are not allowed.
* @returns The cloned JSON value.
*/
export declare function deepCopyObjectSimple<T extends JsonValue>(value: T, filterUndefined?: boolean): T;
export declare function deepCopyObjectSimpleWithoutReactComponents<T extends JsonValue>(value: T, opts?: {
excludeFiles?: boolean;
}): T;
/**
* A deepCopyObject implementation which is slower than deepCopyObject, but more correct.
* Can be used if correctness is more important than speed. Supports circular dependencies
*/
export declare function deepCopyObjectComplex<T>(object: T, cache?: WeakMap<any, any>): T;
//# sourceMappingURL=deepCopyObject.d.ts.map