-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
microsoft/TypeScript-DOM-lib-generator
#398Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Trying to retrieve the result of a read file/blob via the event passed into the reader's onload/onloadend method results in a type error (Property 'result' does not exist on type 'EventTarget').
This is valid JavaScript, which is failing type checking because the EventTarget interface does not have a result property.
Examples:
- Typescript playground example - Clicking the run button should show an alert with the file data
- Jsfiddle example
Workaround: Retrieve the result from the reader object (FileReader.result)
gooddaytoday, danielberndt, BehindTheMath, Smibu, LiJoah and 18 more
Metadata
Metadata
Assignees
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript