Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@vennersys/type-check

Library for checking js object property types

validation, validator, data-validation, typescript, javascript, schema-validation, custom-validation, field-validation, type-safe, runtime-validation, form-validation, react-validation, array-validation, object-validation, string-validation, number-validation, symbol-validation, function-validation, input-validation, lightweight-validator

readme

type-check

NPM

License: MIT Version GitHub last commit GitHub pull requests

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:

  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.


Support

For any questions or issues, feel free to open an issue on GitHub.