{"library":"tsd","type":"library","category":null,"description":"tsd is a utility designed for testing TypeScript type definitions, enabling developers to verify the correctness of their `.d.ts` files. The current stable version is 0.33.0, and the project maintains a relatively frequent release cadence, often updating to support newer TypeScript versions shortly after their release. It distinguishes itself by performing static analysis on `.test-d.ts` files, interpreting special assertion functions like `expectType`, `expectError`, and `expectAssignable` to check type compatibility without executing runtime code. This approach ensures that your type definitions accurately reflect your module's API and behavior, catching potential type-related regressions before they manifest as runtime errors or incorrect IDE IntelliSense. tsd is primarily used via its CLI, which automatically discovers project `package.json`, main type definition files, and test files within a configured directory.","language":"javascript","status":"active","version":"0.33.0","tags":["javascript","typescript","tsd","check","typings","types","typedefs","typedefinitions"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tsd","imports":["import { expectType } from 'tsd'","import { expectError } from 'tsd'","import { expectAssignable } from 'tsd'"]},{"cmd":"yarn add tsd","imports":[]},{"cmd":"pnpm add tsd","imports":[]}],"homepage":null,"github":"https://github.com/tsdjs/tsd","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tsd","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/tsd/compatibility"}}