Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-typescript-to-flow

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-typescript-to-flow

Babel plugin to convert TypeScript into Flow

  • 0.11.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
42
increased by147.06%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-typescript-to-flow

Babel plugin to convert TypeScript code into Flow

If you are looking for converting .d.ts files to Flow definitions - be sure check flowgen first.

Why?

While main goal of this repository is to de the opposite (to help migrate from Flow to TypeScript), in many cases it is preferable to do so gradually.

Especially when having multiple other projects depending on support for Flow. To do so there is a need to generate Flow type definitions from TypeScript .d.ts files.

Why not flowgen - this should be similar to "flow to typescript", and so - keeping it simpler.

However, flowgen does wonderful job converting the definitions files. Also, as confirmed while doing this - because TypeScript has more language features, converting it to Flow is harder.

Purpose

The focus is on converting .d.ts files.

However, it is not limited to only definition files, and many features already are supported.

Status

Work in progress. Some features are missing.

Currently, not actively working on it - instead, to focus on using flowgen.

For the test cases that might be not covered - check test folder, there are some skipped test cases, to be implemented.

Keywords

FAQs

Package last updated on 25 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc