Interface TimelineParsable<T>

The static methods of a class that denote how it is turned in to a TimelineItem.

interface TimelineParsable<T> {
    new TimelineParsablenew (...args): T;
    parse(timelinePart): undefined | readonly [T, string];
}

Type Parameters

Hierarchy

  • StaticType<T>
    • TimelineParsable

Constructors

Methods

Constructors

  • Parameters

    • Rest ...args: any[]

    Returns T

Methods

  • Returns a binary tuple where:

    1. the 1st item is the parsed TimelineItem
    2. the 2nd item is the rest of the unparsed timeline

    Parameters

    • timelinePart: string

    Returns undefined | readonly [T, string]

Generated using TypeDoc