Interface GeneratorFunction

    interface GeneratorFunction {
        new GeneratorFunctionnew (...args: any[]): Generator<unknown, any, any>;
        [toStringTag]: string;
        length: number;
        name: string;
        prototype: Generator<unknown, any, any>;
        (...args: any[]): Generator<unknown, any, any>;
    }
    • Creates a new Generator object.

      Parameters

      • Rest...args: any[]

        A list of arguments the function accepts.

      Returns Generator<unknown, any, any>

    Constructors

    • Creates a new Generator object.

      Parameters

      • Rest...args: any[]

        A list of arguments the function accepts.

      Returns Generator<unknown, any, any>

    Properties

    [toStringTag]: string
    length: number

    The length of the arguments.

    name: string

    Returns the name of the function.

    prototype: Generator<unknown, any, any>

    A reference to the prototype.