Installation
How to add @qubic.org/types to your project.
bun add @qubic.org/typesnpm install @qubic.org/typespnpm add @qubic.org/types@qubic.org/types has no runtime dependencies. It ships only TypeScript types, constructors, guards, and constants — nothing that adds weight to a bundle.
The package targets ES2020 and requires TypeScript 4.9 or later. If you are using strict: true in your tsconfig (recommended), the branded types and type guards will integrate cleanly with TypeScript's control flow analysis.
This package is a required peer dependency of every other @qubic.org/* package. If you are installing @qubic.org/crypto, @qubic.org/tx, or @qubic.org/wallet, add @qubic.org/types to your dependencies as well — it is not automatically hoisted.