{"library":"typeforce","type":"library","category":null,"description":"Typeforce is a JavaScript library designed for biased runtime type checking, offering a comprehensive suite of utilities to enforce data structures and primitive types. As of version 1.18.0, it provides a flexible API for defining complex type schemas, including support for arrays, recursive objects, optional properties (`?`), sum types (`anyOf`), and intersection types (`allOf`). A notable feature is its extensibility through custom type functions, allowing developers to define domain-specific validations. It differentiates itself by offering specialized modules for non-throwing error handling (`typeforce/nothrow`) and asynchronous validation (`typeforce/async`), catering to different error management strategies. While a specific release cadence isn't detailed, its versioning suggests ongoing maintenance and feature development, making it a robust choice for projects requiring strict data validation without relying on static type systems.","language":"javascript","status":"active","version":"1.18.0","tags":["javascript","typeforce","types","typechecking","type","exceptions","force"],"last_verified":"Wed May 27","install":[{"cmd":"npm install typeforce","imports":["const typeforce = require('typeforce')","const { Number } = require('typeforce')","const typeforceNoThrow = require('typeforce/nothrow')"]},{"cmd":"yarn add typeforce","imports":[]},{"cmd":"pnpm add typeforce","imports":[]}],"homepage":null,"github":"https://github.com/dcousens/typeforce","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typeforce","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/typeforce/compatibility"}}