{"library":"babel-plugin-ts-optchain","type":"library","category":null,"description":"Babel plugin that transforms optional chaining expressions (e.g., `obj?.prop`) for TypeScript using the ts-optchain approach. Version 1.1.5 (latest) is stable but unmaintained since 2020. Provides an alternative to TypeScript's native optional chaining for environments that don't support it, by converting `?.` into `_` wrapped calls. Works only with Babel, not tsc. No dependencies. Not recommended for new projects; prefer native optional chaining.","language":"javascript","status":"maintenance","version":"1.1.5","tags":["javascript","babel-plugin","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-ts-optchain","imports":["module.exports = { plugins: ['ts-optchain'] };","module.exports = { plugins: ['ts-optchain'] };","import { oc } from 'ts-optchain';"]},{"cmd":"yarn add babel-plugin-ts-optchain","imports":[]},{"cmd":"pnpm add babel-plugin-ts-optchain","imports":[]}],"homepage":null,"github":"https://github.com/epeli/babel-plugin-ts-optchain","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-ts-optchain","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/babel-plugin-ts-optchain/compatibility"}}