flow / flow-codemod

Flow codemod scripts
MIT License
15 stars 3 forks source link

flow-codemod

This repository contains a collection of codemod scripts for use with JSCodeshift that help update Flowified JS code.

Setup & Run

KNOWN ISSUES

Included Scripts

The following codemods can be found under the transforms directory:

strict-type-args

Adds explicit arguments to polymorphic type application expressions, based on errors from Flow. For example,

let map: Map = ...

...becomes

let map: Map<any, any> = ...

This prepares code for an upcoming change to strict type argument processing. For instructions and more info, see documentation in the transform subdirectory.

License

flow-codemod is MIT licensed, as found in the LICENSE file.