title: Argument of type 'Element | null' is not assignable to parameter of type 'Element | VirtualElement'
body: <p>Just struggling to understand how to correctly type this as I am getting the following error when trying to use the popper component. The documentation isn't clear and I don't have much Typescript experience.</p>
  <blockquote>
  <p>Argument of type 'Element | null' is not assignable to parameter of type 'Element | VirtualElement'.
  Type 'null' is not assignable to type 'Element | VirtualElement'.ts(2345)
  const popcorn: Element | null</p>
  </blockquote>
  <pre><code>const popcorn = document.querySelector('#popcorn')
  const tooltip = document.querySelector('#tooltip')
  
  createPopper(popcorn, tooltip, {
    placement: 'top',
  })
  </code></pre>