I’ve created an add-on method to the native Javascript type "Array’ in .js file, which I include through index.html to ensure that it’s loaded into the runtime (I’m sure of this).
e.g.
Array.prototype.myFunction = function (a,b,c) {
…
}
The problem is that I can’t get it recognized in the typescript compiler or in WebStorm. I know it has something to do with missing typing definitions, tsconfig, etc.
Can someone provide me the simple steps recipe for doing this. e.g. add file X, edit file Y. I both want the ionic compile to work and rid the syntax errors in WebStorm.
Thanks
Jason