美文网首页我爱编程
TypeScript学习-Type Compatibility

TypeScript学习-Type Compatibility

作者: 指尖泛出的繁华 | 来源:发表于2017-07-01 15:40 被阅读26次

TypeScript是基于被称为structural subtyping system进行type compatibility工作的,因为JavaScript大多使用匿名的函数表达式或者对象字面量,所以使用structural subtyping system比使用nominal-type system要自然


A Note on Soundness

相关文章

网友评论

    本文标题:TypeScript学习-Type Compatibility

    本文链接:https://www.haomeiwen.com/subject/clmwcxtx.html