UNPKG

@maxgraph/core

Version:

maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.

15 lines (14 loc) 611 B
/** * Shallow copies properties from the source object to the target object. * * **WARNING**: This function performs only a **shallow** copy i.e. there is no deep copy of the properties that are objects, expect for arrays. * * @template T The type of the objects. * * @param source The source object from which properties will be copied. * @param target The target object to which properties will be copied. * * @private not part of the public API, can be removed or changed without prior notice * @since 0.14.0 */ export declare const shallowCopy: <T extends object>(source: T, target: T) => void;