@vscodeshift/flow-codemorphsgeneral purpose codemods for flow Commandsmake exactConverts object shape types to exact objects. If you position the cursor inside a type annotation, only objects within that type annotation are converted. If there is a selection, only objects within the selection are converted. ExampleBefore
After
make inexactConverts object shape types to inexact objects. If you position the cursor inside a type annotation, only objects within that type annotation are converted. If there is a selection, only objects within the selection are converted. ExampleBefore
After
make read-onlyConverts mutable object shape and array types to readonly types. If you position the cursor inside a type annotation, only objects and arrays within that type annotation are converted. If there is a selection, only objects and arrays within the selection are converted. ExampleBefore
After
|