{"library":"type-assertions","type":"library","category":null,"description":"type-assertions is a JavaScript package providing a suite of assertion utilities specifically designed for testing TypeScript types at compile-time. It enables developers to write unit-like tests for their type definitions, ensuring that types behave as expected and catch regressions when refactoring complex type logic. The current stable version is 1.1.0, released in August 2019. This package has a very slow release cadence, with only two minor releases since its inception, indicating a stable and focused utility. Its primary differentiator is its reliance on the TypeScript compiler to validate assertions, providing compile-time feedback rather than runtime checks, which is ideal for validating type system intricacies.","language":"javascript","status":"maintenance","version":"1.1.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install type-assertions","imports":["import * as ta from 'type-assertions';","import { assert } from 'type-assertions';","import type { Equal } from 'type-assertions';"]},{"cmd":"yarn add type-assertions","imports":[]},{"cmd":"pnpm add type-assertions","imports":[]}],"homepage":null,"github":"https://github.com/ForbesLindesay/type-assertions","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/type-assertions","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/type-assertions/compatibility"}}