-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Open
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
Description
⚙ Compilation target
ES2015 ES2018
⚙ Library
generator asyncgenerator
Missing / Incorrect Definition
GeneratorFunction and AsyncGeneratorFunction (async function * () {}) should not be newable.
GeneratorFunction means function * () {} which is only callable, while GeneratorFunctionConstructor means function * () {}.constructor which is both callable and newable.
Sample Code
declare const gen: GeneratorFunction;
new gen;// there should cause a type error, but notDocumentation Link
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.