Interface StringIterator<T>

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

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

    Type Parameters

    • T
    Hierarchy

    Methods