TypeScript Deep Dive

TypeScript Deep Dive

简介:

这本书是对TypeScript的探索,它是JavaScript的超集。本书的第一部分向您解释了什么是TypeScript以及它的用途。您还将了解它与JavaScript的关系。本书还指导您如何在Windows和其他平台上安装TypeScript。讨论了类型注释,这些注释在定义程序如何缩进方面非常有用,因此,您将学习如何使用它们。详细讨论了与大多数对象兼容的良好接口。理解诸如 “这个” 之类的对象的范围是非常困难的。本书研究了箭头函数,这是一个很好的机制,可以帮助你理解这个关键字的范围。表达式在TypeScript中也被广泛使用,并且已经详细研究了这些表达式。还涵盖了在面向对象编程和创建大型应用程序中非常重要的类,以及与类相关的继承等功能; 还详细探讨了迭代器。“for…of” 循环在TypeScript中被广泛使用。本书讨论了这一点,以及如何实现它。还检查了用于扩展数组元素的扩展运算符。

英文简介:

This book is an exploration of TypeScript, which is a superset of JavaScript. The first part of the book explains to you what TypeScript is and what it is used for. You will also learn how it is related to JavaScript.

The book also guides you on how to install TypeScript on Windows and on other platforms. Type annotations, which are very good in defining how the program is indented, are discussed, and thus, you will learn how to work with them. Interfaces, which are good and compatible with most objects, are discussed in detail. Understanding the scope of objects such as “this” is very difficult.

This book examines arrow functions which are a good mechanism to help you understand the scope of this keyword. Expressions are also used widely in TypeScript, and these have been explored in detail. Classes which are very important in object-oriented programming and for creation of large apps are also covered, along with features such as inheritance which are associated with classes; Iterators have also been explored in detail. The "for…of" loop is widely used in TypeScript. This is discussed in this book, along with how to implement it. The spread operator, which is used for the purpose of spreading the elements of an array, is also examined.

书名
TypeScript Deep Dive
译名
深入探究 TypeScript
语言
英语
年份
2015
页数
376页
大小
2.50 MB
标签
  • TypeScript
  • 下载
    pdf iconTypeScript Deep Dive.pdf
    密码
    65536

    最后更新:2025-04-12 23:54:40

    ←Tackling TypeScript: Upgrading from JavaScript

    →TypeScript Succinctly: The .NET approach to JavaScript