{"library":"better-typescript-lib","type":"library","category":null,"description":"An alternative TypeScript standard library that replaces TypeScript's built-in type definitions with safer, more precise types. Version 2.12.0 supports TypeScript 4.5+ (up to 5.8). It fixes many `any` usages in the standard library (e.g., JSON.parse returns `JSONData` instead of `any`, Object.keys returns `(keyof T)[]` instead of `string[]`). Aimed at new projects or codebases willing to accept breaking changes for improved type safety. No configuration needed for npm/yarn (auto-detected); pnpm requires public hoist pattern. The package replaces `@typescript/lib-*` packages via npm's scoped package mapping.","language":"javascript","status":"active","version":"2.12.0","tags":["javascript","TypeScript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install better-typescript-lib","imports":["import {} from 'better-typescript-lib' // or just install, no import needed","const data: JSONData = JSON.parse('...')","const keys: (keyof T)[] = Object.keys(obj)"]},{"cmd":"yarn add better-typescript-lib","imports":[]},{"cmd":"pnpm add better-typescript-lib","imports":[]}],"homepage":null,"github":"https://github.com/uhyo/better-typescript-lib","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/better-typescript-lib","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/better-typescript-lib/compatibility"}}