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>;
}
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.