Skip to content

Fix type declarations for "setSelectionRange" API#340

Merged
mhegazy merged 1 commit into
microsoft:masterfrom
mariusschulz:setSelectionRange
Jan 4, 2018
Merged

Fix type declarations for "setSelectionRange" API#340
mhegazy merged 1 commit into
microsoft:masterfrom
mariusschulz:setSelectionRange

Conversation

@mariusschulz
Copy link
Copy Markdown
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