@petsel/es-type-detection - v1.0.0
    Preparing search index...

    Type Alias AsyncGenerator

    AsyncGenerator: {
        __brand: "AsyncGenerator";
        constructor: AsyncGeneratorFunction;
        next: (value?: any) => Promise<IteratorResult<any>>;
        return?: (value?: any) => Promise<IteratorResult<any>>;
        throw?: (error?: any) => Promise<IteratorResult<any>>;
    }

    An async generator type created e.g. as:

    /** @type {AsyncGenerator} */
    const asyncGeneratorType = (async function* () {
    yield await Promise.resolve(1);
    })();

    @property {'AsyncGenerator'} [Symbol.toStringTag] Defines the Symbol.toStringTag property as "AsyncGenerator".

    Type declaration