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

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

[Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [ClassDecoratorFactory](./metadata.classdecoratorfactory.md) &gt; [mergeWithOwn](./metadata.classdecoratorfactory.mergewithown.md)

## ClassDecoratorFactory.mergeWithOwn() method

<b>Signature:</b>

```typescript
protected mergeWithOwn(ownMetadata: T, target: Object, member?: string, descriptorOrIndex?: TypedPropertyDescriptor<any> | number): T;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  ownMetadata | T |  |
|  target | Object |  |
|  member | string |  |
|  descriptorOrIndex | TypedPropertyDescriptor&lt;any&gt; \| number |  |

<b>Returns:</b>

T


