/effective-typescript

Effective TypeScript: 62 Specific Ways to Improve Your TypeScript

OtherNOASSERTION

Effective TypeScript

This is the code sample repo for Effective TypeScript: 62 Specific Ways to Improve Your TypeScript. The book is available through:

and others.

You can get the latest updates on the book at https://effectivetypescript.com.

Code Samples

Below you'll find a complete table of contents with links to standalone code samples for each item. All code samples should produce the expected errors (and no others) and expected types.

Unless otherwise noted in a comment at the top of the code sample, the samples are run with TypeScript's strict setting. These were produced and checked using literate-ts and TypeScript 3.7.0-beta. You may want to copy/paste them into the TypeScript playground.