Polyman Documentation - v3.1.0
    Preparing search index...

    Class History

    Walks the sent messages with up and down, when the input is empty.

    Index
    items: string[] = []
    index: number | null = null

    The index while walking, or null when not walking.

    • get walking(): boolean

      True while the user walks the history.

      Returns boolean

    • Adds a sent message and stops walking.

      Parameters

      • text: string

      Returns void

    • The older message, or null when there is none.

      Returns string | null

    • The newer message, or '' after the newest one.

      Returns string | null