{"library":"babel-type-scopes","type":"library","category":null,"description":"Utility functions for looking up and working with Flow and TypeScript type scopes in Babel. Version 1.1.0 provides four main functions: isTypeScope, getClosestTypeScopePath, getOwnTypeBindings, and getTypeBinding. These helpers identify whether a Babel path creates a type scope, find the nearest ancestor type scope, retrieve type bindings defined in the current scope, and search for type bindings up the scope chain. The package supports both Flow and TypeScript, and is intended for Babel plugin or tool authors. It is lightweight with no production dependencies. Released in 2018, the library is stable but sees infrequent updates. Similar functionality exists in @babel/traverse, but this package provides more targeted scope inspection.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","babel","utils","flow","typescript","scope","binding"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-type-scopes","imports":["import { isTypeScope } from 'babel-type-scopes'","import { getClosestTypeScopePath } from 'babel-type-scopes'","import { getTypeBinding } from 'babel-type-scopes'"]},{"cmd":"yarn add babel-type-scopes","imports":[]},{"cmd":"pnpm add babel-type-scopes","imports":[]}],"homepage":null,"github":"https://github.com/babel-utils/babel-type-scopes","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-type-scopes","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-type-scopes/compatibility"}}