UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

10 lines (9 loc) 460 B
import { AbstractIterator } from "./AbstractIterator.js"; /** Iterable that pulls values from a source iterable. */ export declare class ThroughIterator<T, R, N> extends AbstractIterator<T, R, N> implements Iterator<T, R, N>, Iterable<T, R, N> { private readonly _source; constructor(iterator: Iterator<T, R, N>); next(value: N): IteratorResult<T, R>; throw(thrown: unknown): IteratorResult<T, R>; return(value: R): IteratorResult<T, R>; }