Documentation
    Preparing search index...

    Interface TimelineParsable<T>

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

    interface TimelineParsable<
        T extends TimelineItem<unknown> = TimelineItem<unknown>,
    > {
        new TimelineParsable(...args: any[]): T;
        parse(timelinePart: string): readonly [T, string] | undefined;
    }

    Type Parameters

    Hierarchy

    • Outerface<T>
      • TimelineParsable
    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • ...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 readonly [T, string] | undefined