How does TypeScript check equality for infinite recursive types?

后端 未结 0 1542
野的像风
野的像风 2020-12-20 20:33

How does TypeScript check equality for infinite recursive types?

Example:

// LL is the same as L unfolded once
type L = [] | {item: number, next: L}
ty         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题