Skip to main content

Home > @jsplumbtoolkit/browser-ui > mergeWithParents

mergeWithParents() function#

Extract the definition(s) with the given type and merge them,

Signature:

export declare function mergeWithParents<T extends {    mergeStrategy?: string;}>(type: Array<string> | string, map: Dictionary<T>, shouldOverride?: (p: string, from: any) => boolean): any;

Parameters#

ParameterTypeDescription
typeArray<string> | stringType, or types, to extract. If a single type is specified that is what will be returned. If an array of types are specified they will all be merged together.
mapDictionary<T>Map from which to retrieve individual types
shouldOverride(p: string, from: any) => boolean

Returns:

any