Sha256: 5059763982439cdb46b7207b35d7ce5d609bf099cf883e84f030e59db62188af
Contents?: true
Size: 787 Bytes
Versions: 52
Compression:
Stored size: 787 Bytes
Contents
/** * This is the same as TypeScript's `Iterable`, but with all three type parameters. * @todo Remove once TypeScript 5.6 is the minimum. */ interface Iterable<T, TReturn, TNext> { [Symbol.iterator](): Iterator<T, TReturn, TNext>; } /** * This is the same as TypeScript's `AsyncIterable`, but with all three type parameters. * @todo Remove once TypeScript 5.6 is the minimum. */ interface AsyncIterable<T, TReturn, TNext> { [Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>; } /** * Determines if the given function is an iterator. */ declare function isIterable<IteratorType>(fn: any): fn is Iterable<IteratorType, IteratorType, IteratorType> | AsyncIterable<IteratorType, IteratorType, IteratorType>; export { type AsyncIterable, type Iterable, isIterable };
Version data entries
52 entries across 26 versions & 1 rubygems