Skip to content

Updated HTMLMediaElement.play return type to Promise<void> #249

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

Merged

Conversation

majames
Copy link

@majames majames commented May 9, 2017

Closes issue #15691

microsoft/TypeScript#15691

@msftclas
Copy link

msftclas commented May 9, 2017

@majames,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@mhegazy
Copy link
Contributor

mhegazy commented May 11, 2017

@saschanaz can you please review this change?

@saschanaz
Copy link
Contributor

saschanaz commented May 12, 2017

I'm not 100% sure about the policy, but if we prefer WHATWG spec over W3C one then LGTM, if not I think it should be Promise<void> | void for W3C/MSEdge compatibility.

@majames
Copy link
Author

majames commented May 12, 2017

I'd be happy to go with Promise<void> | void 👍

@mhegazy
Copy link
Contributor

mhegazy commented May 12, 2017

what do current browsers support?

@saschanaz
Copy link
Contributor

Firefox: Promise
Chrome: Promise
Edge: void

@mhegazy
Copy link
Contributor

mhegazy commented May 12, 2017

I would say it should be Promise<void> then. Edge has been moving to align with the spec lately, so this seems like a point-in-time issue.

@saschanaz
Copy link
Contributor

LGTM then 😄

@mhegazy mhegazy merged commit 0be887a into microsoft:master May 12, 2017
@mhegazy
Copy link
Contributor

mhegazy commented May 12, 2017

thanks @majames and thanks @saschanaz for the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants