Represents an error in the timeline.

Remarks

Represented by an E character.

Hierarchy (view full)

Constructors

  • Parameters

    • Optional message: string

    Returns TimelineItemError

Properties

#private: any
#private: any
regexEnding: "(?:-|\\||$)" = "(?:-|\\||$)"

A piece of regular expression that will match something after a timeline item.

Remarks

This is generally one of:

  • a dash
  • a close symbol
  • the end of the timeline

Accessors

  • get finished(): boolean
  • If returns true, the item can be considered finished or "unimportant".

    Returns boolean

  • get rawValue(): string
  • Returns string

Methods

  • Returns the value the TimelineItem decorates.

    Returns TimelineError

  • Called after this item has been used and before the next item is "reached".

    Returns Promise<void>

    Remarks

    To match other timelines, that may be a string of dashes, consider all characters in the raw value to wait just like that of a dash.

  • Called when this item is reached in the timeline.

    Returns Promise<void>

  • The string representation of this item in a timeline.

    Returns string

  • Creates a RegExp item to match your timeline item.

    Parameters

    • regexp: string

    Returns RegExp

    Remarks

    Prepends the regexp with a start character (^) and appends it with TimelineItem.regexEnding.

  • Parameters

    • timeline: string

    Returns undefined | readonly [TimelineItemError, string]

Generated using TypeDoc