UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

36 lines (24 loc) 1.31 kB
--- 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) &gt; [@loopback/metadata](./metadata.md) &gt; [MethodDecoratorFactory](./metadata.methoddecoratorfactory.md) &gt; [mergeWithInherited](./metadata.methoddecoratorfactory.mergewithinherited.md) ## MethodDecoratorFactory.mergeWithInherited() method **Signature:** ```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)<!-- -->&lt;T&gt; | | | target | Object | | | methodName | string | _(Optional)_ | | methodDescriptor | TypedPropertyDescriptor&lt;any&gt; \| number | _(Optional)_ | **Returns:** [MetadataMap](./metadata.metadatamap.md)<!-- -->&lt;T&gt;