Skip to content

Commit 7bf1c09

Browse files
BuckAMayzingsandersn
authored andcommitted
Changed selection direction definition: (#745)
Regression from #340 Addresses microsoft/TypeScript#32449
1 parent 749e5aa commit 7bf1c09

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7344,7 +7344,7 @@ interface HTMLInputElement extends HTMLElement {
73447344
* When present, marks an element that can't be submitted without a value.
73457345
*/
73467346
required: boolean;
7347-
selectionDirection: string | null;
7347+
selectionDirection: "forward" | "backward" | "none" | null;
73487348
/**
73497349
* Gets or sets the end position or offset of a text selection.
73507350
*/
@@ -8935,7 +8935,7 @@ interface HTMLTextAreaElement extends HTMLElement {
89358935
* Sets or retrieves the number of horizontal rows contained in the object.
89368936
*/
89378937
rows: number;
8938-
selectionDirection: string;
8938+
selectionDirection: "forward" | "backward" | "none";
89398939
/**
89408940
* Gets or sets the end position or offset of a text selection.
89418941
*/

inputfiles/overridingTypes.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,6 +1476,10 @@
14761476
"read-only": 1,
14771477
"override-type": "HTMLFormElement | null"
14781478
},
1479+
"selectionDirection": {
1480+
"name": "selectionDirection",
1481+
"override-type": "\"forward\" | \"backward\" | \"none\""
1482+
},
14791483
"valueAsDate": {
14801484
"name": "valueAsDate",
14811485
"override-type": "Date | null"
@@ -1668,6 +1672,10 @@
16681672
"labels": {
16691673
"name": "labels",
16701674
"override-type": "NodeListOf<HTMLLabelElement>"
1675+
},
1676+
"selectionDirection": {
1677+
"name": "selectionDirection",
1678+
"override-type": "\"forward\" | \"backward\" | \"none\""
16711679
}
16721680
}
16731681
},

0 commit comments

Comments
 (0)