TypeScript学习-Type Compatibility
2017-07-01 本文已影响26人
指尖泛出的繁华
TypeScript是基于被称为structural subtyping system
进行type compatibility
工作的,因为JavaScript大多使用匿名的函数表达式或者对象字面量,所以使用structural subtyping system
比使用nominal-type system
要自然
TypeScript是基于被称为structural subtyping system
进行type compatibility
工作的,因为JavaScript大多使用匿名的函数表达式或者对象字面量,所以使用structural subtyping system
比使用nominal-type system
要自然