flow-remove-types
Version:
Removes Flow type annotations from JavaScript files with speed and simplicity.
17 lines (14 loc) • 358 B
JavaScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
var flowRemoveTypes = require('./index');
module.exports = {
process: function (src, filename) {
return flowRemoveTypes(src).toString();
},
};