Re:Etsy’s Journey to TypeScript
by spiralx on Wednesday November 17, 2021 @08:20AM
(#29252608)
> 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.
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.