CLI to convert Flow code into TypeScript with babel-plugin-flow-to-typescript
npm install @fiahfy/flow2ts> CLI to convert Flow code into TypeScript with babel-plugin-flow-to-typescript.
``bash`
npm install @fiahfy/flow2ts
`js
import { convert } from '@fiahfy/flow2ts'
convert(code)
`
`bash`
npm install -g @fiahfy/flow2ts
flow2ts index.js
or use via npx
`bash``
npx @fiahfy/flow2ts index.js