TypeScript for Beginners: The Ultimate Guide
- Length: 144 pages
- Edition: 1
- Language: English
- Publisher: CRC Press
- Publication Date: 2022-02-17
- ISBN-10: 1032067578
- ISBN-13: 9781032067575
- Sales Rank: #0 (See Top 100 Books)
Of late, TypeScript has risen in popularity owing to its ease of use and versatile compatibility. As such, more and more developers are looking to quickly and efficiently master TypeScript. If you’re looking for a detailed yet easy to comprehend guide to TypeScript, your search ends here!
The book is a detailed guide that will help learners get started with TypeScript programming in no time. It talks about the basics and then moves on to practical exercises to help readers quickly gain the required knowledge.
The book is meant both for JavaScript developers as well as learners without a formal JS background. Furthermore, while a background in JavaScript programming might be of help, the book requires no prior coding background and can be easily mastered even by beginners.
What Will You Learn:
- Detailed focus on TypeScript programming
- Introduction to TypeScript concepts and paradigm
- Introduction to TS architecture and components
- OOP programming with TS
- Web development in TypeScript
Who Is This Book For:
Web developers looking to learn TypeScript; web development beginners; JavaScript developers; frontend developers.
Cover Half Title Title Page Copyright Page Contents Acknowledgments About the Author CHAPTER 1: TypeScript: Introduction to TypeScript WHAT IS TS? A BRIEF HISTORY OF TS WHY SHOULD YOU CHOOSE TS? How Does TS Help Developers Code Easier? How Exactly Does TS Improve JS? TS AS COMPARED TO JS What Is JS? TS Strengths Syntactic Sugar TS STRUCTURE Basic TS Types Boolean Number String Array Tuple Tuples Deconstruction Optional Tuple Elements Enum String Enums Any Void Null and Undefined Never Symbol Type Assertions The Let Keyword TS Compiler Variable Declarations var Declarations Scoping Block Viewport Re-declaring and Escaping Closure of Variables with Block Scope Viewability Constant Declarations Let or Const? Destructuring Destructuring an Object Renaming Properties Default Values Declaring Functions Interfaces Extending Interfaces Indexed Types Interface Implementation Discriminated Union Types Working with Interfaces Optional Properties Read-Only Properties Checks for Extra Properties Functional Types Indexed Types INTEGRATED DEVELOPMENT ENVIRONMENTS Node-Based Compilation Creating a tsconfig.json File CHAPTER 2: Key Concepts of TS CLASSES Inheritance Interface Inheritance Class Inheritance Access Modifiers Public by Default Private Modifier Protected Modifier Readonly Modifier Type Iterator Modifier Parameter Properties Accessors (Getters/Setters) Static Properties Abstract Classes Constructors Using a Class as an Interface FUNCTIONS Types of Functions Adding Types to a Function Inferring Types Best General Type Context Type Anonymous Functions Type Compatibility Optional Parameters and Default Parameters Rest Parameters this Keyword Keyword “this” and Arrow Functions this Parameters this Parameters for Callback Functions Overloads GENERICS Exploring the World of Generics Working with Generalized Type Variables Generalized Types Generalized Classes Limitations of Generalizations Using Generic Parameters in Generalization Constraints Using Class Types in Generalizations new Keyword ENUMS Constant Enums Declare Enums SYMBOLS Predefined Characters CHAPTER 3: Modules and Namespaces WHAT IS NAMESPACE? WHAT IS MODULE? Export Export Validation Reexport Import Importing a Single Exported Item Importing the Entire Module into a Single Variable, and Using It to Access the Exported Module Elements Importing a Module for the Sake of “Side Effects” Default Export Generating Code for Modules Optional Module Loading and Its Other Advanced Scenarios Working with Other JavaScript Libraries EXTERNAL MODULES Abbreviated External Module Declaration Entry Module Declarations Using Wildcard Characters UMD MODULES STRUCTURING MODULES Export as Close to the Top Level as Possible If You Export Only One Class or One Function, Use Export Default If You Are Exporting Multiple Objects, Put Them on the Top Level Explicitly Define the Imported Names Use the Namespace Import Template When Importing a Large Number of Items Do Not Use Namespaces in Modules Risk Indicators Loading Modules Module Resolution Relative and Nonrelative Module Imports Module Resolution Strategies How Does Node.js Resolve Modules? Additional Flags of the Module Resolution System Base URL Path Mapping Virtual Directories with rootDirs Tracking Module Resolution What to Look for in the Trace? CHAPTER 4: TS Runtime WHAT IS RUNTIME? NODE.JS WHY TYPESCRIPT IS HERE TOO? Why Node.js? WHAT IS DENO? Main Features of Deno Safety Module System Installation of Deno Installation in Windows Internal Part Safety Strict: True by Default Deno Modules Deno.core Deno Standard Modules Deno X Package Manager Lock File Web Standards WASM, RUST, Plugins Debugging Testing Integration Testing Compiler API dev_server INSTALLING AND COMPILING THE TS Installation via NPM Installing as a Visual Studio Plugin Compiling an App MERGING DECLARATIONS Basic Concepts Merging Interfaces Merging Namespaces Merging Namespaces with Classes, Functions, and Enumerations Merging Namespaces with Classes Prohibited Merges CHAPTER 5: TypeScript Architecture WHAT IS AN APPLICATION ARCHITECTURE? WHY DO WE NEED ARCHITECTURE? SINGLE-PAGE APPLICATION MULTI-PAGE ARCHITECTURE CREATING AN APPLICATION IN TYPESCRIPT MAKING AN APP COMPILATION: WATCH MODE MV* ARCHITECTURE MVC (MODEL VIEW CONTROLLER) Model View Controller MVC FRAMEWORKS BACKBONE AURELIA ANGULAR REACT Webpack Configuration TEST-DRIVEN DEVELOPMENT MODULE, INTEGRATION, AND ACCEPTANCE TESTINGS Module Testings Integration Testings Acceptance Testings REFACTORING TYPESCRIPT 4.2 RELEASE SUPPORT FOR REST ELEMENTS IN THE FIRST AND INTERMEDIATE PARAMETERS OF TUPLES OF TYPES SAVING-TYPE ALIASES THE ABSTRACT MODIFIER IN CONSTRUCTOR SIGNATURES Strict Checks for the In Statement UNUSED VARIABLES DURING ARRAY DESTRUCTURIZATION TYPE ARGUMENTS Future Plans CHAPTER 6: Appraisal APPENDIX INDEX
Donate to keep this site alive
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.