This package provides experimental type-level boolean logic primitives using TypeScript's advanced generic system. With a version of `0.0.0` and last published over seven years ago (September 2018), it is in an extremely early, experimental state and is effectively abandoned. There is no established release cadence, and it completely lacks documentation, including a README. Its intended purpose is for advanced TypeScript developers requiring compile-time type validation or metaprogramming, allowing for boolean operations such as AND, OR, and NOT to be performed directly within the type system. This enables the creation of more robust and self-documenting types for intricate conditional logic scenarios, distinguishing itself by offering these utilities as pure type definitions rather than runtime values.
npm install typescript-logicVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic type-level boolean logic operations (AND, OR, NOT) using generic types.
Avoid using this package for new projects or production. Consider type-level utility libraries that are actively maintained and have stable versioning.
Always use `import type { SymbolName } from 'typescript-logic';` to correctly import type-level constructs.Thoroughly inspect the source code or rely on TypeScript's built-in type inference to understand available generics and their proper application.
Change `import { And } from 'typescript-logic';` to `import type { And } from 'typescript-logic';`.Ensure you are using the specific type-level constants (`True`, `False`) provided by the library when constructing generic types, rather than raw `true` or `false` boolean literals.
No dependency data recorded yet.