TypeScript: Exhaustiveness Checks via Exceptions

TypeScript supports exhaustiveness checking for enums and similar types. This blog post shows how to use idiomatic JavaScript for this kind of check. Read more

Similar

Announcing TypeScript 3.8 RC

Today we’re announcing the Release Candidate for TypeScript 3.8! Between this RC and our final release, we expect no changes apart from critical bug fixes. To get started using the RC, you can get it through NuGet, or through npm with the following comman... (more…)

Read more »