Page Contents

Home > @loopback/metadata > DecoratorOptions

DecoratorOptions interface

Options for a decorator


export interface DecoratorOptions 


Property Type Description
allowInheritance boolean Controls if inherited metadata will be honored. Default to true.
cloneInputSpec boolean Controls if the value of spec argument will be cloned. Sometimes we use shared spec for the decoration, but the decorator function might need to mutate the object. Cloning the input spec makes it safe to use the same spec (template) to decorate different members.Default to true.
decoratorName string Name of the decorator for debugging purpose, such as @inject