@zon-lib/zon package comes with bundled TypeScript definitions (.d.ts). You don’t need to install @types/ packages separately.
Configuration
Ensure yourtsconfig.json can resolve the types:
tsconfig.json
Type-Safe Usage
You can import the types explicitly to use in your function signatures.api.ts
IntelliSense: Your IDE (VS Code) will autocomplete methods like
reader.readU32(offset) and prompt you if you pass incorrect parameters.