babel-plugin-transform-pattern-matching
Generate switch/case structure from class method type annotation. Usable with flowtype and redux.
Transform code like this:
{} {} {} {} {} {} {} {} type AnyAction = Object & Action : A return a : A return a : A return a
to this:
; {} {} {} {} {} {} {} {} type AnyAction = Object & Action; : A return a; : A return a; : A return a;