# ts-assert-unreachable
[![npm version](https://badge.fury.io/js/ts-assert-unreachable.svg?t=1495378566925)](https://badge.fury.io/js/ts-assert-unreachable)
[![CircleCI](https://circleci.com/gh/iyegoroff/ts-assert-unreachable.svg?style=svg)](https://circleci.com/gh/iyegoroff/ts-assert-unreachable)
[![Dependency Status](https://david-dm.org/iyegoroff/ts-assert-unreachable.svg?t=1495378566925)](https://david-dm.org/iyegoroff/ts-assert-unreachable)
[![devDependencies Status](https://david-dm.org/iyegoroff/ts-assert-unreachable/dev-status.svg)](https://david-dm.org/iyegoroff/ts-assert-unreachable?type=dev)
[![typings included](https://img.shields.io/badge/typings-included-brightgreen.svg?t=1495378566925)](dist/index.d.ts)
[![npm](https://img.shields.io/npm/l/express.svg?t=1495378566925)](https://www.npmjs.com/package/ts-assert-unreachable)

Typescript assert for exhaustive switch blocks. Taken from [this](https://stackoverflow.com/a/39419171/4134913) SO answer by Ryan Cavanaugh.

## Installation

`$ npm i ts-assert-unreachable`

## Usage

See [tests](test/fixtures/)
