Interface IndexGenerator<T>

Generator of ordered string indices.

interface IndexGenerator {
    create(start?, end?, count?): Iterable<T>;
    validate(index): boolean;
}

Type Parameters

  • T = string

Implemented by

Methods

  • Generates count indices between start and end exclusively.

    Parameters

    • Optional start: T
    • Optional end: T
    • Optional count: number

    Returns Iterable<T>

  • Returns if given index is valid for this generator.

    Parameters

    • index: T

    Returns boolean

Generated using TypeDoc