Page Contents
Home > @loopback/metadata > MetadataAccessor > create
MetadataAccessor.create() method
Create a strongly-typed metadata accessor
Signature:
static create<V, DT extends DecoratorType>(key: string): MetadataAccessor<V, DT>;
Parameters
Parameter | Type | Description |
---|---|---|
key | string | The metadata key |
Returns:
MetadataAccessor<V, DT>