Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-flow-strip-types

Package Overview
Dependencies
Maintainers
5
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-flow-strip-types - npm Package Compare versions

Comparing version 7.0.0-beta.49 to 7.0.0-beta.50

10

package.json
{
"name": "@babel/plugin-transform-flow-strip-types",
"version": "7.0.0-beta.49",
"version": "7.0.0-beta.50",
"description": "Strip flow type annotations from your output code.",

@@ -12,4 +12,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-flow-strip-types",

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.49",
"@babel/plugin-syntax-flow": "7.0.0-beta.49"
"@babel/helper-plugin-utils": "7.0.0-beta.50",
"@babel/plugin-syntax-flow": "7.0.0-beta.50"
},

@@ -20,5 +20,5 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "7.0.0-beta.49",
"@babel/helper-plugin-test-runner": "7.0.0-beta.49"
"@babel/core": "7.0.0-beta.50",
"@babel/helper-plugin-test-runner": "7.0.0-beta.50"
}
}
# @babel/plugin-transform-flow-strip-types
> Strip all [flow](http://flowtype.org) type annotations and declarations from your output code.
> Strip flow type annotations from your output code.
## Example
See our website [@babel/plugin-transform-flow-strip-types](https://new.babeljs.io/docs/en/next/babel-plugin-transform-flow-strip-types.html) for more information.
**In**
## Install
```javascript
function foo(one: any, two: number, three?): string {}
```
Using npm:
**Out**
```javascript
function foo(one, two, three) {}
```
## Installation
```sh
npm install --save-dev @babel/plugin-transform-flow-strip-types
npm install --save @babel/plugin-transform-flow-strip-types
```
## Usage
or using yarn:
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["@babel/plugin-transform-flow-strip-types"]
}
```
### Via CLI
```sh
babel --plugins @babel/plugin-transform-flow-strip-types script.js
yarn add --save @babel/plugin-transform-flow-strip-types
```
### Via Node API
```javascript
require("@babel/core").transform("code", {
plugins: ["@babel/plugin-transform-flow-strip-types"]
});
```
## Options
### `requireDirective`
`boolean`, defaults to `false`.
Setting this to true will only strip annotations and declarations from files
that contain the `// @flow` directive. It will also throw errors for any Flow
annotations found in files without the directive.
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