@bento/types
v0.1.0
Published
Shared TypeScript types used across the Bento library.
Readme
@bento/types
A shared TypeScript types package for the Bento library. This package centralizes common type definitions to reduce duplication, improve consistency, and simplify type maintenance across the Bento library.
Installation
npm install @bento/typesUsage
Import types directly from the package. Eg:
import type { UnknownObject } from '@bento/types';
interface Data {
elements: UnknownObject
}Contributing
When adding new types to the library, follow these guidelines:
- Organize types into appropriate categories
- Document types with JSDoc comments
- Add tests for the types in the
testdirectory - Ensure exported types have descriptive names
- Export them from the main
src/index.tsfile
Testing
Tests are written using Vitest's type testing approach. To run the tests for the types, run the following command:
npm test