@loopback/docs
Version:
Documentation for LoopBack 4
40 lines (28 loc) • 1.08 kB
Markdown
lang: en
title: 'API docs: metadata.namespacedreflect.metadata'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/metadata
permalink: /doc/en/lb4/apidocs.metadata.namespacedreflect.metadata.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/metadata](./metadata.md) > [NamespacedReflect](./metadata.namespacedreflect.md) > [metadata](./metadata.namespacedreflect.metadata.md)
## NamespacedReflect.metadata() method
<b>Signature:</b>
```typescript
metadata(metadataKey: string, metadataValue: any): {
(target: Function): void;
(target: Object, targetKey: string | symbol): void;
};
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| metadataKey | <code>string</code> | |
| metadataValue | <code>any</code> | |
<b>Returns:</b>
`{
(target: Function): void;
(target: Object, targetKey: string | symbol): void;
}`