MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / metadata

Method metadata

packages/metadata/src/reflect.ts:181–190  ·  view source on GitHub ↗
(
    metadataKey: string,
    metadataValue: any,
  )

Source from the content-addressed store, hash-verified

179 }
180
181 metadata(
182 metadataKey: string,
183 metadataValue: any,
184 ): {
185 (target: Function): void;
186 (target: Object, targetKey: string | symbol): void;
187 } {
188 metadataKey = this.getMetadataKey(metadataKey);
189 return Reflect.metadata(metadataKey, metadataValue);
190 }
191}
192
193export const Reflector = new NamespacedReflect('loopback');

Callers 3

TestClassClass · 0.80
reflect.unit.tsFile · 0.80

Calls 1

getMetadataKeyMethod · 0.95

Tested by

no test coverage detected