{"library":"ts-interface-checker","type":"library","category":null,"description":"ts-interface-checker is a runtime validation library for TypeScript interfaces, currently stable at version 1.0.2. It works in conjunction with `ts-interface-builder` (a build-time tool) to generate JavaScript modules that encapsulate the structural checks derived from TypeScript interface definitions. This approach allows developers to validate arbitrary JavaScript objects (e.g., parsed JSON from network requests or configuration files) against their TypeScript types at runtime, providing detailed error messages upon failure. The library itself is lightweight and focuses solely on the runtime checking mechanism, making it suitable for environments where type safety beyond compile-time is desired, such as API boundary validation. It supports checking properties, optional fields, and even method call arguments and return values as defined in interfaces. It maintains a stable release cadence for its core functionality.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","typescript","ts","interface","type","validate","validator","check"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ts-interface-checker","imports":["import { createCheckers } from \"ts-interface-checker\";","import type { Checker } from \"ts-interface-checker\";","import fooTI from \"./foo-ti\";"]},{"cmd":"yarn add ts-interface-checker","imports":[]},{"cmd":"pnpm add ts-interface-checker","imports":[]}],"homepage":null,"github":"https://github.com/gristlabs/ts-interface-checker","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-interface-checker","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/ts-interface-checker/compatibility"}}