售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
TypeScript Essentials
Table of Contents
TypeScript Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with TypeScript
The advantages of TypeScript
Setting up the IDE
Hello World
Command-line compilation
Integrating Visual Studio
Creating a new project
Build options
Summary
2. TypeScript Basics
Types
Functions
Interfaces
Classes
Definitions
Interfaces
Static and instance members
Properties
Enums
Modules
Internal modules
Generic objects
Summary
3. The TypeScript Compiler
Generation of ECMAScript
ECMAScript version
Code manipulation
Controlling compiler output
JavaScript output
Source maps
Advanced options
Summary
4. Object-oriented Programming with TypeScript
The basics
SOLID – object-oriented design
Understanding inheritance
Encapsulation
Abstraction
Polymorphism
Method overloading
Operator overloading
Method overrides
References
Summary
5. Creating a Simple Drawing Application
Setting up the project
The shapes
Basic shapes
Drawing shapes
Making the application interactive
The engine
Mouse events
User options
Summary
6. Declaration Files and Library Integrations
Declaration files
Third-party library integration
Installing NuGet packages
Integrating with jQuery
Integrating with Knockout
Using RequireJS
Summary
7. Enhancing the Drawing Application
Converting to AMD modules
Binding the user controls
Reusable controls
Creating a ViewModel
Generating a single output file
Styling the application
Summary
8. Debugging TypeScript
Debugging
Source maps
Debuggers
Test-driven development
Unit testing
Adding tests
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜