Answers for "Property 'result' does not exist on type 'EventTarget'"

0

Property 'result' does not exist on type 'EventTarget'

const fileReader: FileReader = new FileReader();

fileReader.onload = (event: Event) => {
   event.target.result; // This is invalid
   fileReader.result; // This is valid
};
Posted by: Guest on September-24-2021

Code answers related to "Property 'result' does not exist on type 'EventTarget'"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language