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

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

[Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [NamespacedReflect](./metadata.namespacedreflect.md) &gt; [decorate](./metadata.namespacedreflect.decorate.md)

## NamespacedReflect.decorate() method

<b>Signature:</b>

```typescript
decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: Object, targetKey?: string | symbol, descriptor?: PropertyDescriptor): PropertyDescriptor | Function;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  decorators | (PropertyDecorator \| MethodDecorator)\[\] |  |
|  target | Object |  |
|  targetKey | string \| symbol |  |
|  descriptor | PropertyDescriptor |  |

<b>Returns:</b>

PropertyDescriptor \| Function


