Documentation - v1.5.3
    Preparing search index...

    History

    This class represents a history entry for an entity, containing label, state, annotator name, and timestamp.

    Index

    Constructors

    • Constructor for the History class.

      Parameters

      • label: string

        The label of the entity at this point in history.

      • state: string

        The state of the entity at this point in history.

      • annotatorName: string

        The name of the annotator who made this change.

      • timestamp: string

        The timestamp when this change was made.

      Returns History

      This constructor initializes the History with label, state, annotator name, and timestamp.

    Properties

    annotatorName: string

    The name of the annotator who made this change.

    label: string

    The label of the entity at this point in history.

    state: string

    The state of the entity at this point in history.

    timestamp: string

    The timestamp when this change was made.

    Methods

    • Formats the date to a string.

      Parameters

      • date: Date

        The date to format.

      Returns string

      The formatted date string.

      This method formats the date to a string in ISO format.