UNPKG

@loopback/docs

Version:

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

78 lines (41 loc) 1.32 kB
--- lang: en title: 'API docs: metadata.namespacedreflect.metadata' 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.metadata.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; [metadata](./metadata.namespacedreflect.metadata.md) ## NamespacedReflect.metadata() method **Signature:** ```typescript metadata(metadataKey: string, metadataValue: any): { (target: Function): void; (target: Object, targetKey: string | symbol): void; }; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> metadataKey </td><td markdown="1"> string </td><td markdown="1"> </td></tr> <tr><td markdown="1"> metadataValue </td><td markdown="1"> any </td><td markdown="1"> </td></tr> </tbody></table> **Returns:** { (target: Function): void; (target: Object, targetKey: string \| symbol): void; }