实现一个工具类型 If<C, F T,>,接收一个布尔值类型 Ctruefalse)。如果 Ctrue,返回类型 T;如果 Cfalse,返回类型 F

type If<C extends boloan,T,F> = C extends true ? T : F

If

题目

If