Название: Effective TypeScript: 83 Specific Ways to Improve Your TypeScript, 2nd Edition Автор: Dan Vanderkam Издательство: O’Reilly Media, Inc. Год: 2024 Страниц: 404 Язык: английский Формат: pdf (true), epub (true) Размер: 11.8 MB
TypeScript is a typed superset of jаvascript with the potential to solve many of the headaches for which jаvascript is famous. But TypeScript has a learning curve of its own, and understanding how to use it effectively takes time and practice. Using the format popularized by Effective C++ and Effective Java (both Addison-Wesley), this practical book features 83 items that give specific advice on what to do and what not to do, and how to think about the language.
Author Dan Vanderkam shows you how to apply each item's advice through concrete examples. This book will help you advance from a beginning or intermediate user familiar with TypeScript basics to an expert who knows how to use the language well.
Updated for TypeScript 5, this second edition includes two new chapters on type-level programming and TypeScript recipes.
• Learn the nuts and bolts of TypeScript's type system • Use type inference to get full safety with a minimum of type annotations • Design types to make your code safer and more understandable • Model complex APIs using generic types and type-level programming • Understand how dependencies and type declaration files work in TypeScript • Successfully migrate your jаvascript code base to TypeScript
Who This Book Is For: The Effective books are intended to be the “standard second book” on their topic. You’ll get the most out of Effective TypeScript if you have some previous practical experience working with jаvascript and TypeScript. My goal with this book is not to teach you TypeScript or jаvascript but to help you advance from a beginning or intermediate user to an expert. The items in this book do this by helping you build mental models of how TypeScript and its ecosystem work, making you aware of pitfalls and traps to avoid, and by guiding you toward using TypeScript’s many capabilities in the most effective ways possible. Whereas a reference book will explain the five ways that a language lets you do X, an Effective book will tell you which of those five to use and why.
TypeScript has evolved rapidly over the past few years, but my hope is that it has stabilized enough that the content in this book will remain valid for years to come. This book focuses primarily on the language itself, rather than any frameworks or build tools. You won’t find any examples of how to use React or Vue with TypeScript, or how to configure TypeScript to work with webpack or Vite. The advice in this book should be relevant to all TypeScript users.
Скачать Effective TypeScript: 83 Specific Ways to Improve Your TypeScript, 2nd Edition
Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.