Page Contents
Home > @loopback/metadata > NamespacedReflect > defineMetadata
NamespacedReflect.defineMetadata() method
define metadata for a target class or it’s property/method
Signature:
defineMetadata(metadataKey: string, metadataValue: any, target: Object, propertyKey?: string): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
|
metadataKey |
string | |
|
metadataValue |
any | |
|
target |
Object | |
|
propertyKey |
string |
(Optional) |
Returns:
void