Recognize 'constructor' as a special property when classes implement interfaces #26398
Closed
4 tasks done
Labels
Duplicate
An existing issue was already created
In this code snippet:
currently errors are thrown in the last 2 lines.[1][2]
I propose that TypeScript recognizes 'constructor' as a special property when classes implement interfaces so that the above code will be valid.
The benefit of this will be that we will be able to check both the instance and static side of a class against interfaces.
[1]
[2]
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: