Page Contents

Home > @loopback/metadata > DecoratorFactory > (constructor)

DecoratorFactory.constructor

Construct a new class decorator factory

Signature:

constructor(key: string, spec: T, options?: DecoratorOptions | undefined);

Parameters

Parameter Type Description
key string Metadata key
spec T Metadata object from the decorator function
options DecoratorOptions | undefined Options for the decorator. Default to {allowInheritance: true} if not provided