loading...

re: My confusions about TypeScript VIEW POST

FULL DISCUSSION
 

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.

code of conduct - report abuse