Socket
Socket
Sign inDemoInstall

babel-plugin-transform-flow-strip-types

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-flow-strip-types

Strip flow type annotations from your output code.


Version published
Weekly downloads
449K
decreased by-2.64%
Maintainers
6
Weekly downloads
 
Created

What is babel-plugin-transform-flow-strip-types?

The babel-plugin-transform-flow-strip-types package is a Babel plugin that removes Flow type annotations from your code. This allows you to write type-safe code using Flow, and then strip out the type annotations when you compile your code for production, ensuring that the type annotations do not affect runtime performance.

What are babel-plugin-transform-flow-strip-types's main functionalities?

Strip Flow Type Annotations

This feature removes Flow type annotations from the code. In the input code, the function `add` has type annotations for its parameters and return type. After using the plugin, these type annotations are stripped out, leaving only the plain JavaScript code.

/* Input Code */
function add(a: number, b: number): number {
  return a + b;
}

/* Output Code after using babel-plugin-transform-flow-strip-types */
function add(a, b) {
  return a + b;
}

Other packages similar to babel-plugin-transform-flow-strip-types

Keywords

FAQs

Package last updated on 20 Jan 2017

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