title: Using SVG.select() method with class selector of the svg.js library doesn't work with typescript
body: <p>I'm testing <a href="http://svgjs.com/" rel="nofollow noreferrer">svg.js</a> library with typescript and having some problems with <a href="http://svgjs.com/referencing/#element-select" rel="nofollow noreferrer">usage of CSS selectors</a>. I would like to select SVG element using <code>select()</code> method with class selector. In <a href="https://jsfiddle.net/fd86s71d/6/" rel="nofollow noreferrer">the presented fiddle</a> it works perfectly with javascript:</p>
  
  <pre><code>var circleTwo = SVG.select('circle.circle-01');
  </code></pre>
  
  <p>Unfortunately, it doesn't work with typescript. Lib is imported like that:</p>
  
  <pre><code>import * as SVG from 'svg.js;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ehPH1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ehPH1.jpg" alt="enter image description here"></a></p>
  
  <p>When hover on <code>select()</code> method, getting the info about second parameter:</p>
  
  <p><a href="https://i.stack.imgur.com/a1y8l.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a1y8l.jpg" alt="enter image description here"></a></p>
  
  <p>However according to <a href="http://svgjs.com/referencing/#element-select" rel="nofollow noreferrer">the documentation</a> </p>
  
  <blockquote>
    <p>Additionally, a second argument can be passed to define the parent element to search in</p>
  </blockquote>
  
  <p>It seems that it is an optional argument because you can use <code>select()</code> method without it: </p>
  
  <pre><code>var elements = SVG.select('rect.my-class').fill('#f06')
  </code></pre>
  
  <p>I've played a bit and found how to get rid of this error (<strong>the question is, is this correct approach?</strong>), however I can't use later the <code>click()</code> event on the selected element, because of another error:</p>
  
  <blockquote>
    <p>Property 'click' does not exist on type 'Set'.</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/GYHaX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GYHaX.jpg" alt="enter image description here"></a></p>
  
  <p><code>testMe()</code> is the simple method to test the <code>click()</code> event on the selected element:</p>
  
  <pre><code>  testMe() {
      alert('it works even better!');
    }
  </code></pre>
  
  <p>What am I doing wrong?</p>