-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore FileReaderProgressEvent #704
Conversation
This type doesn't exist, but is useful until we parametrise ProgressEvent with subtype properties. Fixes microsoft/TypeScript#25510
@saschanaz You might be interested in this one. |
@andrewbranch @rbuckton I'm adding you as reviewers so that somebody else on the team is aware of TSJS-lib-generator changes. |
Well, why not just parameterize it? |
@@ -153,7 +153,7 @@ export function emitWebIdl(webidl: Browser.WebIdl, flavor: Flavor) { | |||
/// Interface name to its related eventhandler name list map | |||
/// Note: | |||
/// In the xml file, each event handler has | |||
/// 1. eventhanlder name: "onready", "onabort" etc. | |||
/// 1. eventhandler name: "onready", "onabort" etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
@saschanaz This is easier for now until I understand the compatibility concerns of parametrising ProgressEvent. This definitely works the way people expect because that's the way it used to work. |
This reverts commit 17d343a.
This reverts commit 17d343a.
What is meant by "parametrise ProgressEvent with subtype properties"? Making it into a discriminated union or something...? |
This reverts commit 17d343a.
@fatcerberus See #707 for @saschanaz' implementation. I was thinking of a general way to add properties, but #707 is sensibly much more restricted. It just lets subtypes change the type of |
This type doesn't exist, but it did before about a year ago, and is useful until we parametrise ProgressEvent with subtype properties.
Also fixes variable names in
merge
, which had source and target backward, making for some confusing reading.Fixes microsoft/TypeScript#25510