@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
36 lines (24 loc) • 1.29 kB
Markdown
---
lang: en
title: 'API docs: metadata.methoddecoratorfactory.mergewithinherited'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/metadata
permalink: /doc/en/lb4/apidocs.metadata.methoddecoratorfactory.mergewithinherited.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/metadata](./metadata.md) > [MethodDecoratorFactory](./metadata.methoddecoratorfactory.md) > [mergeWithInherited](./metadata.methoddecoratorfactory.mergewithinherited.md)
## MethodDecoratorFactory.mergeWithInherited() method
<b>Signature:</b>
```typescript
protected mergeWithInherited(inheritedMetadata: MetadataMap<T>, target: Object, methodName?: string, methodDescriptor?: TypedPropertyDescriptor<any> | number): MetadataMap<T>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| inheritedMetadata | [MetadataMap](./metadata.metadatamap.md)<!-- --><T> | |
| target | Object | |
| methodName | string | |
| methodDescriptor | TypedPropertyDescriptor<any> \| number | |
<b>Returns:</b>
[MetadataMap](./metadata.metadatamap.md)<!-- --><T>