GroupTransformer
A transformer that combines multiple transformers.
Import:
import { GroupTransformer } from 'obsidian-dev-utils/transformers/group-transformer';Signature:
export class GroupTransformer extends TransformerExtends: Transformer
Constructor
new GroupTransformer(transformers: Transformer[])Transformers to combine.
Methods
| Method | Returns | Description |
|---|---|---|
| canTransform(value, key) | boolean | Determines if the value can be transformed by any of the transformers. |
| getTransformer(transformerId) | Transformer | Gets the transformer with the given id. |
| getTransformerId(value, key) | null | string | Gets the id of the transformer that can transform the given value. |
| restoreValue() | never | This transformer does not support restoring values. |
| restoreValue(transformedValue, key) | unknown | Restores the given value. (Inherited from Transformer) |
| transformObjectRecursively(value) | GenericObject | Transforms the given object recursively. (Inherited from Transformer) |
| transformValue(value, key) | unknown | Transforms the value using the first transformer that can transform it. |