摘要: It can be painful to write the same function repeatedly with different types. Typescript generics allow us to write 1 function and maintain whatever t 阅读全文
posted @ 2016-10-14 19:54 Zhentiw 阅读(183) 评论(0) 推荐(0)
摘要: Sometimes the compiler needs help figuring out a type. In this lesson we learn how to help out the compiler with Typescript type assertion. We have a  阅读全文
posted @ 2016-10-14 19:38 Zhentiw 阅读(425) 评论(0) 推荐(0)
摘要: Typescript classes make inheritance much easier to write and understand. In this lesson we look into how to set up inheritance with Typescript classes 阅读全文
posted @ 2016-10-14 03:06 Zhentiw 阅读(202) 评论(0) 推荐(0)