DecoratorBase
Home > @backstage/plugin-search-backend-node
> DecoratorBase
Base class encapsulating simple async transformations. Useful as a base class for Backstage search decorators.
Signature:
abstract class DecoratorBase extends Transform
Extends: Transform
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)() | Constructs a new instance of the DecoratorBase class |
Methods
Method | Modifiers | Description |
---|---|---|
decorate(document) | abstract | Receives a single indexable document. In your decorate method, you can: - Resolve |
finalize() | abstract | Any asynchronous teardown tasks can be performed here. |
initialize() | abstract | Any asynchronous setup tasks can be performed here. |