List of Listings
Chapter 1. Getting familiar with TypeScript
Listing 1.2. The resulting main.js file
Chapter 2. Basic and custom types
Listing 2.1. Symbols as object properties
Listing 2.2. An arrow function that returns the never type
Listing 2.3. Identifiers with inferred types
Listing 2.4. Calculating tax in JavaScript
Listing 2.5. Calculating tax in TypeScript
Listing 2.6. padLeft with the any type
Listing 2.7. Invoking the padLeft function
Listing 2.8. padLeft with the union type
Listing 2.9. The never type of an impossible value
Listing 2.10. Declaring alias types Foot and Pound
Get TypeScript Quickly now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.