title: Property does not exist on type 'object' from third party function
body: <p>I have a 3rd party function (someone else's library) that is returning an object via a Promise. I'd like to do this:</p>
  <pre><code>externalClient
   .query(&quot;...&quot;)
   .then((value) =&gt; value.data);
  </code></pre>
  <p>Just to be clear, <code>externalClient.query</code> is a function I didn't write.</p>
  <p>However, typescript is erroring with the message <code>Property 'data' does not exist on type 'object'. ts(2339)</code></p>
  <p>How do I handle this?</p>