You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// importReact,{Component}from'react'exportconstComponentA=()=>(<div>Component that contains a thing’y</div>)exportconstComponentB=()=>(<div>Another component that contains a thing’y</div>)classExampleComponentextendsComponent{constructor(props){super(props)this.state={foo: 'bar',}}render(){return(<div>Foo</div>)}}exportdefaultExampleComponent
Actual output:
// importReact,{Component}from'react'exportconstComponentA=()=>(<div>Component that contains a thing’y</div>)exportconstComponentB=()=>(<div>Another component that contains a thing’y</div>)typeassExampleComponentextendsComponent<Proconstructor(props: Prsuper(props)this.state={foo: 'bar',}}render(){return(<div>Foo</div>)}}exportdefaultExampleComponent
The text was updated successfully, but these errors were encountered:
Flow version: 2.106.3 (flow-remove-types).
Note that I'm not entirely clear how the version of
flow-remove-types
is coupled toflow
.Expected behavior
Flow syntax is removed.
Actual behavior
Most flow syntax is removed, but at this character, the output gets corrupted.
Example
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: