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

    Type Alias Generator

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

    A generator type created e.g. as:

    /** @type {Generator} */
    const generatorType = (function* () { yield 1; })();

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

    Type declaration