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: Record<string, T>, shouldOverride?: (p: string, from: any) => boolean): any;
Parameters
Parameter | Type | Description |
---|---|---|
type | Array<string> | string | Type, 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. |
map | Record<string, T> | Map from which to retrieve individual types |
shouldOverride | (p: string, from: any) => boolean |
Returns:
any