Page Contents
Home > @loopback/metadata > DecoratorOptions
DecoratorOptions interface
Options for a decorator
Signature:
export interface DecoratorOptions
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
allowInheritance? | boolean | (Optional) Controls if inherited metadata will be honored. Default to true . |
|
cloneInputSpec? | boolean | <p>(Optional) 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.</p><p>Default to true .</p> |
|
decoratorName? | string | (Optional) Name of the decorator for debugging purpose, such as @inject |