JS: ESlint saying undefined method but it is from external script

  eslint, javascript

I have a class that I am using as my video player. On my main page, I have a script tag to include Amazon’s IVS video player external script. That has a lot of methods in it, including registerIVSTech which I am calling in this class :

class myClass {
     constructor(myData) {
          this.data = myData;
     init() {

export default myClass;

However, when I run ESLint, it says:

 error  'registerIVSTech' is not defined           no-undef

but it is defined. I used a debugger and the value of it is there since the IVS scripts loads on the page, the class has access to it. Is there a way around this without using npm modules?

Source: Ask Javascript Questions