7 ms·
> TypeScript doesn't truly understand sub-class relationships nor even prototypal inheritance. Yes, I was recently spent several hours trying to write a condit
by spiralx 5y ago
> TypeScript doesn't truly understand sub-class relationships nor even prototypal inheritance.
Yes, I was recently spent several hours trying to write a conditional type based on the prototype of a generic type and gave up in the end. It's a surprising gap in one sense, but on the other hand I've never needed it before and probably wouldn't have needed it then were I not fiddling around with some toy code in the TS playground.