type Equal = (() => T extends A ? 1 : 2) extends (() => T extends B ? 1 : 2) ? true : false; type Expect = T; // 注意:类型测试配置只包含 TS;JS 的形状由 tsconfig.jsdoc.json 的 checkJs 负责 type Case1 = Expect>;