Customers who viewed this item also viewed
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Learning TypeScript: Enhance Your Web Development Skills Using Type-Safe JavaScript 1st Edition
Purchase options and add-ons
Learning TypeScript takes beginner to intermediate JavaScript programmers from knowing nothing about "types" or a "type system" to full mastery of the fundamentals of TypeScript. It's more than a means to find bugs and typos--it's a useful system for declaring the way our JavaScript should work and helping us stick to it. You'll learn how TypeScript:
- interacts with JavaScript
- analyzes and understands code
- augments your existing development pattern
- helps you document your code
- works with IDEs to provide refactoring tools
- assists local development in refactoring code
- helps you develop more quickly with fewer bugs
- ISBN-101098110331
- ISBN-13978-1098110338
- Edition1st
- PublisherO'Reilly Media
- Publication dateJuly 12, 2022
- LanguageEnglish
- Dimensions7 x 0.5 x 9.25 inches
- Print length317 pages
Frequently bought together

Deals on related products
Customers also bought or read
- Effective TypeScript: 83 Specific Ways to Improve Your TypeScript
Paperback$41.33$41.33FREE delivery Fri, Jun 5 - Programming TypeScript: Making Your JavaScript Applications Scale
Paperback$29.43$29.43Delivery Fri, Jun 5 - JavaScript: The Definitive Guide: Master the World's Most-Used Programming Language
Paperback$57.18$57.18$3.99 delivery Jun 12 - 17 - Learning React: Modern Patterns for Developing React Apps
Paperback$36.49$36.49FREE delivery Fri, Jun 5 - The Road to React: Your journey to master plain yet pragmatic React.js
Paperback$29.99$29.99Delivery Fri, Jun 5 - Learn React with TypeScript: A beginner's guide to building real-world, production-ready web apps with React 19 and TypeScript
Paperback$39.99$39.99FREE delivery Fri, Jun 5 - React Key Concepts: An in-depth guide to React's core features
Paperback$23.71$23.71Delivery Fri, Jun 5 - JavaScript from Beginner to Professional: Learn JavaScript quickly by building fun, interactive, and dynamic web apps, games, and pages
Paperback$28.99$28.99Delivery Fri, Jun 5 - Modern Full-Stack React Projects: Build, maintain, and deploy modern web apps using MongoDB, Express, React, and Node.js
Paperback$33.26$33.26Delivery Fri, Jun 5 - TypeScript Cookbook: Real World Type-Level Programming
Paperback$35.05$35.05FREE delivery Jun 12 - 14 - React and React Native: Build cross-platform JavaScript and TypeScript apps for the web, desktop, and mobile
Paperback$43.99$43.99FREE delivery Fri, Jun 5 - Programming Rust: Fast, Safe Systems Development#1 Best SellerFunctional Software Programming
Paperback$43.99$43.99FREE delivery Fri, Jun 5 - Fluent Python: Clear, Concise, and Effective Programming
Paperback$43.99$43.99FREE delivery Fri, Jun 5 - Learning JavaScript Design Patterns: A JavaScript and React Developer's Guide
Paperback$38.00$38.00FREE delivery Fri, Jun 5 - The Rust Programming Language, 3rd Edition#1 Best SellerObject-Oriented Software Design
Paperback$39.71$39.71FREE delivery Fri, Jun 5 - Node.js: The Comprehensive Guide to Server-Side JavaScript Programming (Rheinwerk Computing)
Paperback$43.80$43.80FREE delivery Fri, Jun 5 - Effective TypeScript: 62 Specific Ways to Improve Your TypeScript
Paperback$36.33$36.33FREE delivery Jun 8 - 11 - A Philosophy of Software Design, 2nd Edition#1 Best SellerMicrosoft Programming
Paperback$22.95$22.95Delivery Fri, Jun 5 - Learning Angular: A practical guide to building web applications with modern Angular
Paperback$38.49$38.49FREE delivery Fri, Jun 5 - Fundamentals of Software Architecture: A Modern Engineering Approach#1 Best SellerComputer Programming Logic
Paperback$57.40$57.40FREE delivery Fri, Jun 5 - TypeScript 5 Design Patterns and Best Practices: Build clean and scalable apps with proven patterns and expert insights
Paperback$24.58$24.58Delivery Fri, Jun 5 - JavaScript: The Comprehensive Guide to Learning Professional JavaScript Programming (Rheinwerk Computing)
Paperback$47.17$47.17FREE delivery Fri, Jun 5 - The Pragmatic Programmer: Your Journey To Mastery, 20th Anniversary Edition (2nd Edition)#1 Best SellerSoftware Design & Engineering
Hardcover$52.99$52.99FREE delivery Fri, Jun 5 - Mastering Node.js Web Development: Go on a comprehensive journey from the fundamentals to advanced web development with Node.js
Paperback$47.49$47.49FREE delivery Fri, Jun 5 - Learning Git: A Hands-On and Visual Guide to the Basics of Git
Paperback$34.92$34.92Delivery Fri, Jun 5
From the brand
-
Explore more Typescript
-
or explore JavaScript
-
More from O'Reilly
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
From the Publisher
From the Preface
Who Should Read This Book
If you have an understanding of writing JavaScript code, can run basic commands in a terminal, and are interested in learning about TypeScript, this book is for you.
Maybe you’ve heard TypeScript can help you write a lot of JavaScript with fewer bugs (true!) or document your code well for other people to read (also true!). Maybe you’ve seen TypeScript show up in a lot of job postings, or in a new role you’re starting.
Whatever your reason, as long as you come in knowing the fundamentals of JavaScript—variables, functions, closures/scope, and classes—this book will take you from no TypeScript knowledge to mastering the fundamentals and most important features of the language.
By the end of this book, you will understand:
- The history and context for why TypeScript is useful on top of “vanilla” JavaScript
- How a type system models code
- How a type checker analyzes code
- How to use development-only type annotations to inform the type system
- How TypeScript works with IDEs (Integrated Development Environments) to provide code exploration and refactoring tools
And you will be able to:
- Articulate the benefits of TypeScript and general characteristics of its type system.
- Add type annotations where useful in your code.
- Represent moderately complex types using TypeScript’s built-in inferences and new syntax.
TypeScript is a wildly popular language in both industry and open source:
- GitHub’s 2021 and 2020 State of the Octoverses have it at the platform’s fourth top language
- StackOverflow’s 2021 Developer Survey has it at the world’s third most loved language
- The 2020 State of JS Survey shows TypeScript has consistently high satisfaction and usage amounts
Navigating this Book
Learning TypeScript has two purposes:
- You can read through it once to understand TypeScript as a whole.
- Later, you can refer back to it as a practical introductory TypeScript language reference.
This book ramps up from concepts to practical use across three general sections:
- Part I, “Concepts”: How JavaScript came to be, what TypeScript adds to it, and the foundations of a type system as TypeScript creates it.
- Part II, “Features”: Fleshing out how the type system interacts with the major parts of JavaScript you’d work with when writing TypeScript code.
- Part III, “Usage”: Now that you understand the features that make up the TypeScript language, how to use them in real-world situations to improve your code reading and editing experience.
Editorial Reviews
About the Author
Product details
- Publisher : O'Reilly Media
- Publication date : July 12, 2022
- Edition : 1st
- Language : English
- Print length : 317 pages
- ISBN-10 : 1098110331
- ISBN-13 : 978-1098110338
- Item Weight : 2.31 pounds
- Dimensions : 7 x 0.5 x 9.25 inches
- Best Sellers Rank: #160,924 in Books (See Top 100 in Books)
- #17 in JavaScript Programming (Books)
- #73 in Introductory & Beginning Programming
- #112 in Software Development (Books)
- Customer Reviews:
About the author

Hi, I'm Josh! I'm a frontend developer from New York with a passion for open source, static analysis, and the web. I'm a full time open source maintainer and work on projects in the TypeScript ecosystem such as typescript-eslint and TypeStat. I'm also the author of O'Reilly's Learning TypeScript O'Reilly. I'm passionate about bringing accessible education to the masses in a sustainable way.
Related products with free delivery on eligible orders
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
- 5 out of 5 stars
Boy did I learn a lot - and had fun doing it
Reviewed in the United States on July 27, 2022Definitely recommend this book especially if you're a javascript efficienado with no knowledge or very little of type script and even if you have a lot of knowledge its still a good book to have. The book was filled with great examples and an easy to follow guide on how to incorporate types into ur javascript repos and libraries. Great book!
5 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 4 out of 5 stars
Clear and not larded up.
Reviewed in the United States on July 14, 2022This is exactly the kind of tech writing that is needed today. It's really clear and to the point and not larded up with filler content.
*Edit. Dropping one star to four. While I stand by my original review I felt the need to adjust it after completing the book. A little more than half way through I came to the conclusion that the content was going to be insufficient ...and it was. You're going to want something with a bit more "meat" to it and by "meat" I mean greater depth to truly "enhance your web development skills".
8 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Best way to learn TypeScript
Reviewed in the United States on July 12, 2022This is my favorite resource for learning TypeScript. From introductory to advanced topics, It's all clear, concise, and comprehensive. I found Josh to be an excellent—and fun—writer 😃
4 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
As Promised
Reviewed in the United States on September 22, 2024Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 3 out of 5 stars
Typos combined with brain teasers
Reviewed in the United States on February 27, 2024I must rate the content of this book as rather poor compared to many programming language books i have read. I am a coder with a background in Java, C#, and Python and I bought this because i recently started working on a new project at work that is developed in Typescript and Angular, so i wanted to understand the basics of Typescript better.
1st: The book has too many errors and they are almost all in the coding examples. This was leading me to be really confused on a few examples until i found the OReilly online errata website for errors in their books, and my suspicions were confirmed that the code was wrong in quite a few sections.
2nd: This books teaches in a way i dont much care for. It is only my opinion, but i'd like clear examples of the concepts, not brain teasers every chapter. The writing describes feature X, and then the code example follows purposefully written to be a brain teaser for feature X. Rarely is a simple example given. This, combined with the typos i mentioned, made reading these to get the basic understanding of Typescript feel like much more of a choir and makes it harder for me to use the book as a future reference.
Overall, though, I am halfway through the book and it isnt all bad. I have my complaints, but the information is ordered in logical way and i have seen technical books that go off course far too often, and this one does a good job of staying on topic.
3 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Excellent book!
Reviewed in the United States on July 27, 2022This books is amazing! Would recommend if you want to gain deep understanding of typescript.
3 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Excellent TypeScript Resource
Reviewed in the United States on April 16, 2024Excellent book, I read it cover to cover and worked through all of the Web exercises.
I'm an experienced JavaScript developer and wanted to start using TypeScript in my new projects. I read this book and now I am using TypeScript on a day today basis in production code.
The best part of this book was how language features are described and always backed up with sample code to illustrate the concepts. This approach really helped with my understanding of concepts.
Honestly, I can't recommend this book highly enough! The writing style and quality was top-notch and always hit on the topics with enough depth, but not too much.
If you want to learn TypeScript in a practical way and start using it, you can stop with this book, it's that good.
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 3 out of 5 stars
Great resource for learning TS, but a lot of typos and mistakes
Reviewed in the United States on December 7, 2022Really well structured, thorough, and easy to follow. A great resource for someone starting their journey with TS or for seasoned TS devs who want to more deeply understand the code that they write. Despite learning a lot and enjoying the book, I unfortunately couldn’t give the book 5 stars due to the amount of typos and inaccuracies throughout the book. Not just misspellings, but complete, obvious mixups, mistakes, or incorrect words used that could potentially be very confusing for someone new to TS. Did no one proofread this book before publishing??
10 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Top reviews from other countries
Kevin R5 out of 5 starsA very complete book
Reviewed in France on June 13, 2023I bought this book to enhance my knowledge about Typescript and I found what I wanted. 5/5
Easy to understand and no useless explications.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Jennifer5 out of 5 starsLove it!
Reviewed in Australia on November 5, 2025I love it! I love this book so much. I really appreciate the effort the author put into designing the exercises and especially into providing such clear, thoughtful solutions. I learned so much and truly enjoyed the author’s style.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Santosh Yadav5 out of 5 starsRecommended for anyone want to learn Typescript
Reviewed in Germany on January 16, 2023I have been using Typescript since 2017, but the book was really helpful to understand the littlet details about the Typescript.
Using as Const narrows the types, this was an amazing trick which I learned from the book.
Josh is a great teacher, book is recommended for anyone who wants to learn Typescript.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Cliente Amazon5 out of 5 starsUn libro da leggere
Reviewed in Italy on September 17, 2025Indispensabile
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Just Some Guy4 out of 5 starsThe Best Book for JS Devs New to Static Types (but Offers Plenty for Pros, Too)
Reviewed in the United Kingdom on September 17, 2022This is a great book overall, for both JS developer brand new to TypeScript, or even TS pros.
I've read most of the TypeScript books currently on the market, and I believe this is the best one currently out (circa Fall, '22) for a strong JS developer who has never used a statically typed language before (Goldberg assumes you know JS/ES6 well - so if you don't, learn that first!). This book starts from the ground level with the core primitives, and explains the mechanics of TypeScript in a clear methodical way throughout the book. The first 2 chapters will put pros to sleep (skip 'em if that's you), but newbies will get the solid foundation they need to understand the mechanics of using static types at the simplest level.
From there, the book quickly moves into more advanced territory - but everything continues to build on the things explained before. I think Goldberg did an excellent job teaching how the language itself works, with no assumptions about his readers' experience beyond strong command of JavaScript (ES6+).
That said, this book offers plenty of value for pros as well. Each chapter includes solid best-practice tips, gotchas, and detailed explanations about aspects of TS I haven't read in any other book. Granted, you need to dig thru a lot of stuff you may already know to find those nuggets - but just read it as a refresher of all the basics while you hunt for those little golden details.
I should call out the last chapter in particular, for pros - as Goldberg goes over some of the most advanced aspects of the language (conditional types, mapped types, template literal types, etc.). If pros are asleep for the first few chapters, newbies be warned: the last couple chapters may make your brain hurt (and don't worry, you're not alone).
Unfortunately, I do have a few major complaints - which prevent me from giving this book a full 5 stars.
1) There are too many sloppy technical errors to ignore (mostly in the code examples). A good developer should spot most of them - but the technical editor absolutely should have, too. I expect much better from O'Reilly, and they missed the mark this time.
2) Across the board the code examples are just too contrived and minimal (you could call them 'academic'). This isn't unusual for a programming language book - but what this book really lacks is almost any code examples that relate to a real-world use case (i.e. code that builds towards a working demo app or larger project context).
3) As with #2, overall I think this book is simply too short. At 271 pages it covers almost everything it takes on "well enough" – but Goldberg should have added another 100+ pages to offer more examples and context in almost every chapter. It just moves too fast, without going as far/deep as it could have. I'm not saying it's skimpy or not worth the price - I just wish he'd added more.
Final word: This is the best book I've read to learn TypeScript (as the title suggests) for any mid-level+ JS developer who is brand new to a statically typed language. It also offers plenty of great tips and tricks for pros along the way. Sadly, it's a little too short and sloppy to get the full 5 stars - but if you know that going in, you won't be disappointed!
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again













![Computer Networking Bible: [3 in 1] The Complete Crash Course to Effectively Design, Implement and Manage Networks. Including Sections on Security, Performance and Scalability](/post-https-m.media-amazon.com/images/I/41H4YJnxKgL._AC_SR100,100_QL65_.jpg)




