Skip to main content

Built and signed on GitHub Actions

A library exporting the "assertNever" function for exhaustiveness checking.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 months ago (0.2.1)
f
assertNever

Utility function for exhaustiveness checking. Use it to get compile-time errors for non-exhaustive switch statements. Example: