typescript-type-utils is a lightweight, zero-runtime collection of TypeScript utility types designed to enhance type safety and enable advanced type manipulations within projects. At version 0.1.0, it provides a set of 'test-kit' types for compile-time API signature verification (e.g., `ExpectTrue`, `Equal`) and 'tuple-utils' for advanced tuple type transformations (e.g., `TupleToUnion`, `ReduceTupleOn`). A key differentiator is its strict design principle: the package explicitly contains only `.d.ts` declaration files, meaning it ships no actual JavaScript code, thereby ensuring zero runtime footprint and no potential for runtime errors. Its release cadence is likely infrequent given its stable, pure-type nature and early version number, focusing on robust and broadly applicable type definitions rather than rapid feature additions.
npm install typescript-type-utilsVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and use utility types like `Equal`, `ExpectTrue`, and `TupleToUnion` for compile-time type assertions and transformations, highlighting the library's zero-runtime nature.
Review compilation errors and adjust your code to the new type definitions. It is recommended to pin exact versions or use tilde (~) for minor version updates if strict type stability is crucial.
Always use `import type { ... } from 'typescript-type-utils'` for importing utility types from this library to explicitly declare a type-only import.Consider pinning exact versions for critical projects (`"typescript-type-utils": "0.1.0"`) or contribute to discussions to stabilize desired APIs if you require long-term stability for specific type shapes.
Change `import { MyType }` to `import type { MyType }` to specify a type-only import.Add the necessary type import at the top of your TypeScript file: `import type { ExpectTrue } from 'typescript-type-utils';`.Ensure the package is installed via npm or yarn (`npm install typescript-type-utils` or `yarn add typescript-type-utils`). Verify that your `tsconfig.json` has `moduleResolution` set to a modern value like `NodeNext` or `Bundler` if applicable.
No dependency data recorded yet.