title: How can I export a flow interfaces using CommonJS?
body: <p>I'm not sure if my build is good or not, but in my <code>package.json</code>, I have</p>
  
  <pre><code>"scripts": {
      "build": "flow-remove-types src/ -d build/",
  </code></pre>
  
  <p>And I have a <code>types/sentence.js</code>, which has:</p>
  
  <pre><code>// @flow
  
  type SentenceObject = {
    foo: number,
    bar: boolean,
    baz: string,
  };
  
  module.exports = {
    SentenceObject
  };
  </code></pre>
  
  <p>And in my library file, I have:</p>
  
  <pre><code>const { SentenceObject } = require('../interfaces/sentence');
  </code></pre>
  
  <p>The problem, when I do <code>yarn build</code> is:</p>
  
  <pre><code>src/interfaces/sentence.js
   ↳ Syntax Error: Unexpected token, expected = (3:27)
     2:  export type SentenceObject {
  </code></pre>
  
  <p>What am I doing incorrectly?</p>