Functions with a declared this type should return that type when called with 'new' #8109
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
Given
Expected:
foo
should be of typeFooType
Actual:
foo
is of typeany
.Note: If you name the interface and the function the same thing, then the type of
foo
is structurally correct.The text was updated successfully, but these errors were encountered: