How to set a default value for a Flow type? : <p>I have defined a custom Flow type</p>

<pre><code>export type MyType = {
  code: number,
  type: number = 1,
}
</code></pre>

<p>I want the <code>type</code> parameter to default as <code>1</code> if no value is present. However, Flow is complaining with <code>Unexpected token =</code>.</p>

<p><a href="https://i.stack.imgur.com/tUmEh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tUmEh.png" alt="Flow error"></a></p>

<p>Can this be done with Flow?</p>

<p>Currently using Flow <code>v0.32.0</code>.</p>
