Interface MaybeSyncIterable<T>

An AsyncIterable that may support sync interface.

interface MaybeSyncIterable {
    [asyncIterator](): AsyncIterator<T, any, undefined>;
    [iterator]?(): Iterator<T, any, undefined>;
}

Type Parameters

  • T

Hierarchy

  • AsyncIterable<T>
  • Partial<Iterable<T>>
    • MaybeSyncIterable

Methods

  • Returns AsyncIterator<T, any, undefined>

  • Returns Iterator<T, any, undefined>

Generated using TypeDoc