Page Contents

Home > @loopback/metadata > MetadataAccessor > create

MetadataAccessor.create() method

Create a strongly-typed metadata accessor

Signature:

static create<T, D extends DecoratorType>(key: string): MetadataAccessor<T, D>;

Parameters

Parameter Type Description
key string The metadata key

Returns:

MetadataAccessor<T, D>