title: Angular2 & Typescript: Error TS2339: Property 'selectpicker' does not exist on type 'ElementFinder'
body: <p>Unfortunately we have to use old libraries in the current project, that require jQuery. The activation of those happen in the lifecycle hook section "ngAfterViewChecked". Due to fact, that TypeScript cannot resolve it at the right time, it outputs the error: </p>
  
  <blockquote>
    <p>Error TS2339: 
    Property 'selectpicker' does not exist 
    on type 'ElementFinder'.</p>
  </blockquote>
  
  <p>That is the concerned code block:</p>
  
  <pre><code> ngAfterViewChecked () {
      if (this.agency) {
        //noinspection TypeScriptUnresolvedFunction
        $('.selectpicker').selectpicker();
      }
    }
  </code></pre>
  
  <p>I've added the line <code>//noinspection TypeScriptUnresolvedFunction</code> before the selectpicker activation, but it did not help.</p>
  
  <p>We have a preconfigured build-system and because of such of errors it "bounces" us. How can I get rid of this problem?</p>