typescript interface 与 type 声明类型的区别
在typescript中, 我们定义类型有两种方式: 接口(interface) 和类型别名(type alias)
在官方文档中我们可以看到:
Unlike an interface declaration, which always introduces a named object type, a type alias declaration can introduce a name...
原创
2018-12-18 18:19:55 ·
14323 阅读 ·
0 评论