type o = boolean extends Record<infer X, unknown> ? X : false // valueOf
// ^?
console.log(true
Typescript WTF Moments 7:Boolean can extends Record<infer X,unknown>
![](https://img-home.csdnimg.cn/images/20240711042549.png)
type o = boolean extends Record<infer X, unknown> ? X : false // valueOf
// ^?
console.log(true