Fast, zero-configuration Flow type annotation removal tool for JavaScript with CLI and programmatic APIs
84
A development utility that sets up an automatic Flow type transformation environment for a Node.js project, allowing developers to execute Flow-typed JavaScript files seamlessly without manual build steps.
@generates
/**
* Sets up the Flow type transformation environment.
* Registers the require hook with the specified options to enable
* automatic transformation of Flow-typed JavaScript files.
*
* @param {Object} options - Configuration options for the transformation hook
* @param {boolean} [options.all] - Transform all files, not just those with @flow pragma
* @param {RegExp|string} [options.includes] - Pattern for files to include in transformation
* @param {RegExp|string} [options.excludes] - Pattern for files to exclude from transformation
* @returns {void}
*/
function setupFlowEnvironment(options = {}) {
// IMPLEMENTATION HERE
}
module.exports = { setupFlowEnvironment };Provides automatic Flow type transformation through require hooks.
Install with Tessl CLI
npx tessl i tessl/npm-flow-remove-typesevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10