وبلاگ بلیان

Modern TypeScript : A Practical Guide to Accelerate Your Development Velocity

جلد کتاب Modern TypeScript : A Practical Guide to Accelerate Your Development Velocity

معرفی کتاب «Modern TypeScript : A Practical Guide to Accelerate Your Development Velocity» نوشتهٔ PhD، Rick Hanson، with Forrest Hanson و Ben Beattie-Hood، منتشرشده توسط نشر Apress L. P. در سال 2023. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.

Dive into the world of TypeScript, a popular superset of the JavaScript language that enhances the development experience with static typing. This book covers every aspect of TypeScript in a concise and easy-to-understand style, making it the ultimate resource for mastering TypeScript. Author Ben Beattie-Hood provides comprehensive coverage of TypeScript’s features, such as structural typing, optionality and union types, computed and recursive types, and much more. Each chapter is packed with practical, real-world examples and insider tips drawn from his 20 years of experience as a trainer, ensuring you understand the most important concepts and learn how to avoid common pitfalls. Modern TypeScript will put you on the path to becoming a TypeScript expert, help you greatly reduce errors, and boost your delivery velocity. Whether you’re building small projects or large-scale applications, this book will give you the skills and confidence to write cleaner, scalable, and more maintainable code. Don’t miss this opportunity to elevate your TypeScript proficiency and stay at the forefront of modern development. What You'll Learn Understand how TypeScript works and how it fits into the JavaScript ecosystem Work with the type system, including primitives, interfaces, classes, and functions Leverage the advanced type system with mapped and conditional types, in useful real-world examples Explore tooling and debugging methods available for TypeScript Futureproof development projects for scale using the TypeScript tooling Who This Book Is For Developers, designers, and engineers who are writing front end web sites or apps, or using JavaScript-based back end systems, looking to supercharge their skills and knowledge. Table of Contents About the Author About the Technical Reviewer Chapter 1: How TypeScript Came to Be Introduction History The Problem Scalable Velocity Testing Allows Scale Docs Allow Scale Types Provide Both Testing and Docs Summary Chapter 2: Getting Started with the Developer Experience Introduction Environment and IDE No-Frills TypeScript Setup Debugging TypeScript TypeScript Within a More Realistic Setup Honorable Mentions Summary Chapter 3: TypeScript Basics Introduction Structural Typing JavaScript Types Are Structural Contracts Adding Explicit Types to JavaScript Optionality All The Sugar Array and Object Destructuring, Spread, and Rest Async Generators Inferred Types Types, Automagically Type Widening and Narrowing Auto-narrowing, but Not Too Much Type Assertions Compile-Time Assertions as Keyword satisfies Keyword never Keyword Runtime Assertions typeof, instanceof, and in Operators Custom Assertions Existing Tools any and unknown Keywords Caution: Handle with Care Parameterized Values Index Signatures Function Signatures Constructor Signatures A New Mental Model Summary Chapter 4: Classes Introduction Classes Constructors Access Modifiers Fields Getters and Setters Methods Inheritance Implements Static Modifier Warning 1: Classes Are Not Types Warning 2: Classes Can Cause Scope Bleed Summary Chapter 5: Computed Types Introduction Type Aliases Using Type Aliases Union Types Intersection Types Generic Types Type Parameters const Modifier on Generic Parameters Generic Constraints Inferred Type Keywords typeof Type Inference Keyword keyof Type Inference Keyword Where’s the valueof Type Inference Keyword? Utility Types Record Pick Omit Partial Required Readonly Exclude Extract Parameters ConstructorParameters ReturnType Conditional Types extends Keyword infer Keyword Extracting Inferred Types Distributive and Nondistributive Conditional Types Conditional Types via Property Accessors Mapped Types Changing the Type of Fields Adding and Removing Fields Renaming Fields Recursive Types Recursion Within an Object Type Recursion over a Tuple Type Template Literals Summary Chapter 6: Advanced Usage Introduction Expect and IsEqual Compute JsonOf Flatten UrlParameters UrlParameters with Optional Params Further Reading Summary Chapter 7: Performance Introduction Reducing Inline Types Reducing Inferred Types Inline Caching Using Conditional Types Reduce Intersections Reduce Union Types Partition Using Packages and Projects Partitioning Using Packages Partitioning Using Projects Other Performance Tweaks Debugging Performance Issues Using the @typescript/analyze-trace NPM Package Using a Trace Viewer Within Your Browser Summary Chapter 8: Build Introduction Compiler Options Recommended tsconfig.json Settings Targeting Modern Browsers Prevent Optional Errors Display Complete Errors Enable Widest Range of Safe Interoperability Project Structure and Build Output Other Options Linting Installing ESLint Ideal Ruleset Additional Strict Errors Additional Strict Warnings Removed Rules Further Rules JSX/TSX Modules Module Types Explained CommonJS (CJS) Asynchronous Module Definition (AMD) Universal Module Definition (UMD) SystemJS ESM Exports and Imports How TypeScript Resolves Modules Summary Chapter 9: Wrap Up Index
دانلود کتاب Modern TypeScript : A Practical Guide to Accelerate Your Development Velocity