TypeScript: testing conditional type equality - understanding the syntax

前端 未结 0 1032
攒了一身酷
攒了一身酷 2020-11-22 02:35

I\'ve been experimenting with comparing the equality of types within TypeScript. I\'ve happened upon this approach:

type SomeType = {
  property: string;
}

         


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