Skip to Content
Learning TypeScript
book

Learning TypeScript

by Josh Goldberg
June 2022
Beginner
320 pages
6h 40m
English
O'Reilly Media, Inc.
Book available
Content preview from Learning TypeScript

Part IV. Extra Credit

JavaScript has been around for a few decades at this point, and people have done quite a lot of odd things with it. TypeScript’s syntax and type system need to be able to represent all those odd things to enable any JavaScript developer to work with TypeScript. As a result, there are some corners of the TypeScript language not seen in most day-to-day code but that are relevant, even necessary, for working with some kinds of projects.

I think of these parts of the language as “extra credit” in that you could avoid them entirely and still be a productive TypeScript developer. In fact, for the logical types introduced toward the end of the section, I would hope you wouldn’t need to use them very often—if at all.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Understanding TypeScript

Understanding TypeScript

Maximilian Schwarzmüller

Publisher Resources

ISBN: 9781098110321Errata PageSupplemental Content