title: Property 'current' does not exist on type '((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement>'
body: <p>Usually when I use React + Typescript and I have to work with refs I usually use this check:</p>
  <pre><code>const ref = useRef&lt;HTMLDivElement&gt;(null)
  ...
  if(ref &amp;&amp; ref.current)
  </code></pre>
  <p>But recently, I'm receiving this error:</p>
  <pre><code>Property 'current' does not exist on type '((instance: HTMLDivElement | null) =&gt; void) | RefObject&lt;HTMLDivElement&gt;'.
    Property 'current' does not exist on type '(instance: HTMLDivElement | null) =&gt; void'.ts(2339)
  </code></pre>
  <p>Any ideas on what this error means? To solve the issue, as a workaround, I'm adding a third check:</p>
  <pre><code>if(ref &amp;&amp; &quot;current&quot; in ref &amp;&amp; ref.current)
  </code></pre>
  <p>But this looks pretty bad, mainly when you have to work with multiple refs at once.</p>
  <p>Thanks for your help.</p>