@codegouvfr/react-dsfr
Version:
French State Design System React integration library
10 lines (9 loc) • 316 B
TypeScript
/**
* Functionally equivalent to structuredClone but
* functions are not cloned but kept as is.
* (as opposed to structuredClone that chokes if it encounters a function)
*/
export declare function structuredCloneButFunctions<T>(o: T, replacer?: (params: {
key: string;
value: unknown;
}) => unknown): T;