---
lang: en
title: 'API docs: metadata.propertydecoratorfactory.mergewithinherited'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/metadata
permalink: /doc/en/lb4/apidocs.metadata.propertydecoratorfactory.mergewithinherited.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [PropertyDecoratorFactory](./metadata.propertydecoratorfactory.md) &gt; [mergeWithInherited](./metadata.propertydecoratorfactory.mergewithinherited.md)

## PropertyDecoratorFactory.mergeWithInherited() method

<b>Signature:</b>

```typescript
protected mergeWithInherited(inheritedMetadata: MetadataMap<T>, target: Object, propertyName?: string, descriptorOrIndex?: TypedPropertyDescriptor<any> | number): MetadataMap<T>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  inheritedMetadata | <code>MetadataMap&lt;T&gt;</code> |  |
|  target | <code>Object</code> |  |
|  propertyName | <code>string</code> |  |
|  descriptorOrIndex | <code>TypedPropertyDescriptor&lt;any&gt; &#124; number</code> |  |

<b>Returns:</b>

`MetadataMap<T>`


