title: How to call an external javascript library function within a Typescript class using Angular 2/4?
body: <p>I have a Typescript class <code>class.component.ts</code> in which I want to call methods which are defined within my Javascript class. This Javascript class is headed within: <code>/assets/js/*initlibrary.js*</code>. This javascript library is automatically called when the project is initialized. </p>
  
  <p>My question is: how can I reach out to this javascript library and call the function in it? Is it required to import it in a way like <code>import { Component, OnInit } from '@angular/core';</code>? If so, how should I do this?</p>
  
  <p>Thank you in advance!</p>