Transformer
A base class for transformers.
Import:
import { Transformer } from 'obsidian-dev-utils/transformers/transformer';Signature:
export class TransformerMethods
| Method | Returns | Description |
|---|---|---|
| canTransform(value, key) | boolean | Determines if the transformer can transform the given value. |
| 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(transformedValue, key) | unknown | Restores the given value. |
| transformObjectRecursively(value) | GenericObject | Transforms the given object recursively. |
| transformValue(value, key) | unknown | Transforms the given value. |
Links to this page: