Describes an Iterator produced by the runtime that inherits from the intrinsic Iterator.prototype.

interface StringIterator<T> {
    [iterator](): StringIterator<T>;
    next(...__namedParameters): IteratorResult<T, undefined>;
    return?(value?): IteratorResult<T, undefined>;
    throw?(e?): IteratorResult<T, undefined>;
}

Type Parameters

  • T

Hierarchy (view full)

Methods