@webdeveric/utils
    Preparing search index...
    • Assert that input is an AsyncIterable.

      Parameters

      • input: unknown
      • error: string | Error = 'input is not an AsyncIterable'

      Returns asserts input is AsyncIterable<unknown, any, any>

      async function* gen() {
      yield 1;
      }

      assertIsAsyncIterable(gen()); // does not throw
      assertIsAsyncIterable([1, 2, 3]); // throws TypeError: input is not an AsyncIterable