Skip to content

GroupTransformer

A transformer that combines multiple transformers.

Import:

import { GroupTransformer } from 'obsidian-dev-utils/transformers/group-transformer';

Signature:

export class GroupTransformer extends Transformer

Extends: Transformer

Constructor

new GroupTransformer(transformers: Transformer[])

Transformers to combine.

Methods

MethodReturnsDescription
canTransform(value, key)booleanDetermines if the value can be transformed by any of the transformers.
getTransformer(transformerId)TransformerGets the transformer with the given id.
getTransformerId(value, key)null | stringGets the id of the transformer that can transform the given value.
restoreValue()neverThis transformer does not support restoring values.
restoreValue(transformedValue, key)unknownRestores the given value.
(Inherited from Transformer)
transformObjectRecursively(value)GenericObjectTransforms the given object recursively.
(Inherited from Transformer)
transformValue(value, key)unknownTransforms the value using the first transformer that can transform it.