Provides Flow type definitions for Babel's public API, including types for AST nodes, parsers, transformers, and code generation. Current stable version is 1.2.3. This package is specifically for Flow users who need type coverage when working with Babel's ecosystem, offering types that mirror Babel's internal structures. It is updated infrequently to match Babel's releases. Compared to TypeScript-oriented alternatives like @babel/types, this package is the primary source for Flow consumers relying on Babel.
npm install babel-flow-typesVerified import paths — ran on the pinned version, not inferred.
Shows how to import and use a BabelFlow type in a Flow-typed file.
Consider migrating to TypeScript with @babel/types or continue using Flow with caution.
Check the package's source to see defined types; supplement with custom type definitions as needed.
Use named type imports as shown in the examples.
Run 'npm install babel-flow-types' to add it to dependencies.
Remove 'type' keyword from import to import the actual value, but note that this package only exports types.
Add '// flow-typed' comment or install flow-typed definitions for babel-flow-types.