{"library":"assert-never","type":"library","category":null,"description":"The `assert-never` package provides a lightweight helper function designed for TypeScript's exhaustive checks on discriminated unions. Its primary purpose is to ensure that all possible cases of a union type are handled within a conditional block, leveraging the TypeScript compiler to catch unhandled cases at compile time. At runtime, if an unhandled case is encountered, `assertNever` will throw an `Error` by default, indicating a logical flaw. Alternatively, it can be configured to fail silently. The current stable version is 1.4.0. As a focused utility for a core TypeScript pattern, its release cadence is typically infrequent, with updates primarily for compatibility or minor feature enhancements rather than rapid iteration. Its key differentiator is its simplicity and direct application for a common TypeScript development pattern, making union type handling more robust.","language":"javascript","status":"active","version":"1.4.0","tags":["javascript","typescript","discriminated unions","assert","never"],"last_verified":"Wed May 27","install":[{"cmd":"npm install assert-never","imports":["import { assertNever } from 'assert-never';"]},{"cmd":"yarn add assert-never","imports":[]},{"cmd":"pnpm add assert-never","imports":[]}],"homepage":null,"github":"https://github.com/aikoven/assert-never","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/assert-never","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/assert-never/compatibility"}}