@vennersys/type-check
Version:
Library for checking js object property types
47 lines (29 loc) • 1.78 kB
Markdown
# [type-check](https://leewinter.github.io/type-check/)
[](https://www.npmjs.com/package/@leewinter/type-check)




A lightweight and flexible JavaScript/TypeScript library for validating data structures with support for multiple data types, including strings, numbers, objects, arrays, functions, and symbols. This library provides a unified and extensible API for both runtime and compile-time validation.
## Features
- **Supports Multiple Types**: Validate strings, numbers, objects, arrays, functions, symbols, dates, and more.
- **Type Safety**: Full TypeScript support for type-safe validation.
- **Custom Rules**: Easily add custom validation rules.
- **Unified Interface**: A single API for both JavaScript and TypeScript usage.
- **Runtime Checks**: Ensure values conform to expected types during execution.
- **Comprehensive Feedback**: Provides detailed validation messages and statuses.
## [Visit the docs](https://leewinter.github.io/type-check/)
## Contributing
Contributions are welcome! Please follow these steps:
1. Fork the repository.
2. Create a feature branch.
3. Commit your changes.
4. Submit a pull request.
## License
This library is licensed under the [MIT License](LICENSE).
## Support
For any questions or issues, feel free to open an issue on [GitHub](https://github.com/leewinter/type-check).