Trilium Frontend API
    Preparing search index...

    Class Annotation<T>

    Annotations are tagged values that are used to add metadata to transactions in an extensible way. They should be used to model things that effect the entire transaction (such as its time stamp or information about its origin). For effects that happen alongside the other changes made by the transaction, state effects are more appropriate.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    The annotation type.

    value: T

    The value of this annotation.

    Methods

    • Define a new type of annotation.

      Type Parameters

      • T

      Returns AnnotationType<T>