|
|
před 3 roky | |
|---|---|---|
| .. | ||
| lib | před 3 roky | |
| .npmignore | před 3 roky | |
| README.md | před 3 roky | |
| package.json | před 3 roky | |
Strip all flow type annotations and declarations from your output code.
In
function foo(one: any, two: number, three?): string {}
Out
function foo(one, two, three) {}
npm install --save-dev babel-plugin-transform-flow-strip-types
.babelrc (Recommended).babelrc
{
"plugins": ["transform-flow-strip-types"]
}
babel --plugins transform-flow-strip-types script.js
require("babel-core").transform("code", {
plugins: ["transform-flow-strip-types"]
});