Type alias SyncOrAsyncGenerator<T, TReturn, TNext>

SyncOrAsyncGenerator<T, TReturn, TNext>: AsyncGenerator<T, TReturn, TNext> | Generator<T, TReturn, TNext>

A generator that may be sync or async.

Type Parameters

  • T = unknown

  • TReturn = any

  • TNext = unknown

Generated using TypeDoc