type-any-iterable

type AnyIterable<T>

Usage no npm install needed!

<script type="module">
  import typeAnyIterable from 'https://cdn.skypack.dev/type-any-iterable';
</script>

README

type-any-iterable

flow & typescript typings for the type

type AnyIterable<T>

which can be a sync or async iterable or a promise of such an iterable of type T or a promise of type T.

See test.ts for examples.