* Check if the target has corresponding metadata * @param metadataKey - Key * @param target - Target * @param propertyKey - Optional property key
(
metadataKey: string,
target: Object,
propertyKey?: string,
)
| 71 | * @param propertyKey - Optional property key |
| 72 | */ |
| 73 | hasMetadata( |
| 74 | metadataKey: string, |
| 75 | target: Object, |
| 76 | propertyKey?: string, |
| 77 | ): boolean { |
| 78 | metadataKey = this.getMetadataKey(metadataKey); |
| 79 | if (propertyKey) { |
| 80 | return Reflect.hasMetadata(metadataKey, target, propertyKey); |
| 81 | } |
| 82 | return Reflect.hasMetadata(metadataKey, target); |
| 83 | } |
| 84 | |
| 85 | hasOwnMetadata( |
| 86 | metadataKey: string, |