Page Contents
Home > @loopback/metadata > DecoratorFactory > inherit
DecoratorFactory.inherit() method
Inherit metadata from base classes. By default, this method merges base metadata into the spec if allowInheritance is set to true. To customize the behavior, this method can be overridden by sub classes.
Signature:
protected inherit(inheritedMetadata: T | undefined | null): T;
Parameters
| Parameter | Type | Description |
|---|---|---|
| inheritedMetadata | T \| undefined \| null | Metadata from base classes for the member |
Returns:
T