位置理論の順序で TypeScript を理解する
I’ve been working with TypeScript for a long long time. I think I’m not too bad at it. However, to my despair, some low-level behaviors still confuse me:Why does 0 | 1 extends 0 ? true : false evaluate to false?I’m very ashamed, but I sometimes confuse “subtype” and “supertype”. Which is which?While we’re at…