title: ReasonML access JS record field
body: <p>Say I have a global object called <code>Example</code>, which has a constructor such that <code>new Example()</code> returns an object with a key called <code>"Messaging"</code></p>
  
  <p>Say I have the following Reason/Bucklescript Code:</p>
  
  <pre><code>[@bs.deriving abstract] type example = {
    [@bs.as "Messaging"] messaging: string
  };
  
  type wrappedExample = Js.t(example);
  
  [@bs.new] external exampleConstructor: unit =&gt; wrappedExample = "ExampleThing";
  
  exampleConstructor()#messaging;
  </code></pre>
  
  <p>This results in: </p>
  
  <pre><code>This expression has type wrappedExample
  It has no method messaging
  </code></pre>
  
  <p>Changing the last line to:</p>
  
  <p><code>exampleConstructor()##messaging</code> or <code>exampleConstructor().messaging</code> similiarly fails. What is the issue here? How can I access my javascript value?</p>
  
  <p><a href="https://reasonml.github.io/en/try?rrjsx=true&amp;reason=NoAQRgzgdAJgpgJwJYDckDsDmACAhpAFwVwGMCBdbAgTwAc5s4APXAW1oBsGBebAbwBQ2bKEhRcEbACIAsnAgRcmDJimVW8xcqwAubBCIqBAXwDcAgTXrYA7sVr0YAURbsu2XgCloBABTM2TjgASnMBUWh0OBtKZgJEdFwORlcggGEAe3QDBABXMgyEPVz0JAIPAD5be0cXQPdeKTq3OAAVAAsVKTCAlszsonyCQt9ggGINBSUVUyA" rel="nofollow noreferrer">https://reasonml.github.io/en/try?rrjsx=true&amp;reason=NoAQRgzgdAJgpgJwJYDckDsDmACAhpAFwVwGMCBdbAgTwAc5s4APXAW1oBsGBebAbwBQ2bKEhRcEbACIAsnAgRcmDJimVW8xcqwAubBCIqBAXwDcAgTXrYA7sVr0YAURbsu2XgCloBABTM2TjgASnMBUWh0OBtKZgJEdFwORlcggGEAe3QDBABXMgyEPVz0JAIPAD5be0cXQPdeKTq3OAAVAAsVKTCAlszsonyCQt9ggGINBSUVUyA</a></p>