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
Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Submit a pull request.
License
This library is licensed under the MIT License.
Support
For any questions or issues, feel free to open an issue on GitHub.