---
lang: en
title: 'API docs: metadata.methodmultidecoratorfactory.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.methodmultidecoratorfactory.mergewithinherited.html
---

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

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

## MethodMultiDecoratorFactory.mergeWithInherited() method

<b>Signature:</b>

```typescript
protected mergeWithInherited(inheritedMetadata: MetadataMap<T[]>, target: Object, methodName?: string): MetadataMap<T[]>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  inheritedMetadata | <code>MetadataMap&lt;T[]&gt;</code> |  |
|  target | <code>Object</code> |  |
|  methodName | <code>string</code> |  |

<b>Returns:</b>

`MetadataMap<T[]>`


