Skip to content

Fix type declarations for "setSelectionRange" API #340

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
merged 1 commit into from
Jan 4, 2018

Conversation

mariusschulz
Copy link
Contributor

Fixes microsoft/TypeScript#20419.

The start and end parameters of the HTMLInputElement.setSelectionRange() API are not optional.

In addition, the direction parameter only accepts one of three string values, which is why it's now typed using string literal types.

@mhegazy mhegazy merged commit 7a5ec9d into microsoft:master Jan 4, 2018
BuckAMayzing added a commit to BuckAMayzing/TSJS-lib-generator that referenced this pull request Aug 3, 2019
BuckAMayzing added a commit to BuckAMayzing/TSJS-lib-generator that referenced this pull request Aug 3, 2019
sandersn pushed a commit that referenced this pull request Nov 14, 2019
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.

2 participants