babel/packages/babel-plugin-transform-flow-strip-types
Sam Goldman 17d19a0056 Add export interface Flow syntax support
An interface export is just like a type export. In fact, it's a syntax affordance which makes the following equivalent:

```javascript
interface I_ { ... }
export type I = I_;
```

```javascript
export interface I { ... }
```

See facebook/flow#1145
2016-01-05 15:57:45 -08:00
..
2015-12-06 11:30:07 -05:00
2015-12-06 11:31:46 -05:00
2015-09-15 06:12:46 +01:00

babel-plugin-transform-flow-strip-types

Strip flow type annotations from your output code.

Installation

$ npm install babel-plugin-transform-flow-strip-types

Usage

.babelrc

{
  "plugins": ["transform-flow-strip-types"]
}

Via CLI

$ babel --plugins transform-flow-strip-types script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-flow-strip-types"]
});