In my assets folder, I have a script called 'imageTools.js'. In one of my angular type script files I want to call 'imageTools' but it's unrecognised. What's the best way to do this?
As expected here's the error:
[ts] Cannot find name 'ImageTools'.
Here's my code.
detectFiles(event) {
this.selectedFiles = event.target.files;
ImageTools.resize(this.selectedFiles[0], {
width: 1000,
height: 1000
}, function (blob, didItResize) {
this.testingBaseSixtyFour(blob);
});
}