Trilium Frontend API
    Preparing search index...

    Interface StateEffectSpec<Value>

    interface StateEffectSpec<Value> {
        map?: (value: Value, mapping: ChangeDesc) => Value;
    }

    Type Parameters

    • Value
    Index

    Properties

    Properties

    map?: (value: Value, mapping: ChangeDesc) => Value

    Provides a way to map an effect like this through a position mapping. When not given, the effects will simply not be mapped. When the function returns undefined, that means the mapping deletes the effect.