Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Essential TypeScript 5, Third Edition
Essential TypeScript 5, Third Edition
Essential TypeScript 5, Third Edition
Ebook1,396 pages8 hours

Essential TypeScript 5, Third Edition

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Now in its third edition, this bestselling guide to TypeScript takes you through the nuts and bolts of the language. No frills, no fuss—just TypeScript essentials!

TypeScript enhances JavaScript with static typing, while keeping all the JS flexibility you know and love! It’s the perfect choice for any developer looking to improve the predictability and reliability of their code. Essential TypeScript 5, Third Edition teaches you how to get the most out of TypeScript 5 for a consistent, dependable development experience.

Inside Essential TypeScript 5, Third Edition you’ll learn how to:
 
  • Configure the TypeScript development tools
  • Use type annotations
  • Create strongly typed functions and classes
  • Use generic types
  • Use type guards to determine types
  • Create and consume type declaration files
  • Use TypeScript to create web applications with Angular and React

The book starts you off with a proper understanding of the JavaScript type system that will make using TypeScript so much easier. On that solid foundation, you’ll build your understanding of TypeScript development, following a hands-on learning path all the way to TypeScript’s advanced features.

About the technology

TypeScript is a popular superset of JavaScript that adds support for static typing. TypeScript’s typing features, which will be instantly familiar to C# or Java programmers, help you reduce errors and improve the overall quality of your JavaScript code.

About the book

Essential TypeScript 5 is a fully updated third edition of the classic Adam Freeman bestseller. It provides full coverage of TypeScript 5, including new features like decorators. You’ll begin with the hows-and-whys of TypeScript, then quickly progress to practical applications of static types. No wasted pages! Each chapter is focused on the skills you need to write awesome web apps.

What's inside
 
  • Configure your development tools
  • Create strongly typed functions and classes
  • Use generic types, type annotations, and type guards
  • Create and consume type declaration files

About the reader

For JavaScript developers. No previous experience with TypeScript required.

About the author

Adam Freeman has held senior positions in a range of companies, most recently serving as CTO and COO of a global bank. He has written 50 programming books. The technical editor on this book is Fabio Claudio Ferracchiati.

Table of Contents

1 Understanding TypeScript
Part 1
2 Your first TypeScript application
3 JavaScript primer, part 1
4 JavaScript primer, part 2
5 Using the TypeScript compiler
6 Testing and debugging TypeScript
Part 2
7 Understanding static types
8 Using functions
9 Using arrays, tuples, and enums
10 Working with objects
11 Working with classes and interfaces
12 Using generic types
13 Advanced generic types
14 Using decorators
15 Working with JavaScript
Part 3
16 Creating a stand-alone web app, part 1
17 Creating a stand-alone web app, part 2
18 Creating an Angular app, part 1
19 Creating an Angular app, part 2
20 Creating a React app
21 Creating a React app, part 2
LanguageEnglish
PublisherManning
Release dateDec 19, 2023
ISBN9781638352693
Essential TypeScript 5, Third Edition

Read more from Adam Freeman

Related to Essential TypeScript 5, Third Edition

Related ebooks

Programming For You

View More

Related articles

Reviews for Essential TypeScript 5, Third Edition

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Essential TypeScript 5, Third Edition - Adam Freeman

    n{ebook_preview_excerpt.html}ksƕ_M%PeY, S䤶MϠ9${Kyvc8:|Џ'WO]SWOYM\*{˦tٓSxT_>//6[^MlY_ Yt rz_zmlO/n|uum/*s٦N/UUE'*uѹ6/Ӎm׶Wu*_MSfann]Ս>haoݵ祫V[z eU|[w T9bٹE;囥kv>;xyghUW<_yE(p-ou 7(Wڽ+:ck.k^5nF t,\_6a-?ӞpHX,lJ` ZDa,-μ gD\ޜOOU-lWo{hQk:-/`zù& ,(ֈU oFyuP?W,(ww>q;,(H@,ebuuR"5FPu=+h4rmH9bޕ/7r>]q]t;*azʑger%@j6G)÷J_>-[Yk;μk )`>,[.}j2{w0Bek[_`@|8/( bYװyJaFٔvc,hqWΊjYn p D` ,?xb8\Ad;F8]旸o6⢩oZM|Yp&SgQ]8)bd5bQT wno|lָ] %>.yy:*+I FIOP;wcM$|5DۢX\ cS#"[q6<ŶCFT$!'خ䗢O6q&(&c~^Hln7qi۶e;,Tһ캻5P%R9kG~8BAY%֗Ȩa]6.A"nӅqw`Œx%F@hT1'J"gͲxqȉ!PddOw3M%l k+}Ό vYaA?gN{ Yҷۖ+.φNJSţlXHTP ]6[mr1@ND Cv-)Y%@<{pݧ/Z/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