@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
36 lines (24 loc) • 1.14 kB
Markdown
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) > [@loopback/metadata](./metadata.md) > [NamespacedReflect](./metadata.namespacedreflect.md) > [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