DEV Community

Discussion on: My confusions about TypeScript

Collapse
 
michaeljota profile image
Michael De Abreu

I think the issue when you try to change the signature of a subclass, is that any subclass should be assignable to their superclass.

See in the example: Playground

You can run it and see the error. I understand that in your point of view you could perfectly handle that case, but that's a sample use case.