I am trying to convert this code into TypeScript:
methods: {
handleImage(e) {
const selectedImage = e.target.files[0];
this.createVase64Image(selectedImage);
},
createBase64Image(fileObject) {
const reader = new FileReader();
reader.onload = (e) => {
this.image = e.target.result;
};
reader.readAsBinaryString(fileObject);
}
}
I went and copy-pasted the method and I am receiving this error from the compiler:
Parameter 'e' implicitly has an 'any' type.
What is the meaning of the "e", what is it used for and how do I convert the line of code above into TypeScript?