Skip to content

Commit 6621974

Browse files
andersksaschanaz
andauthored
Strengthen type of HTMLSelectElement.type (#1697)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent 1b3d2d8 commit 6621974

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

baselines/dom.generated.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12563,7 +12563,7 @@ interface HTMLSelectElement extends HTMLElement {
1256312563
*
1256412564
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
1256512565
*/
12566-
readonly type: string;
12566+
readonly type: "select-one" | "select-multiple";
1256712567
/**
1256812568
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
1256912569
*

inputfiles/overridingTypes.jsonc

+4
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,10 @@
12811281
"HTMLSelectElement": {
12821282
"properties": {
12831283
"property": {
1284+
"type": {
1285+
"name": "type",
1286+
"overrideType": "\"select-one\" | \"select-multiple\""
1287+
},
12841288
"autocomplete": {
12851289
"name": "autocomplete",
12861290
"overrideType": "AutoFill"

0 commit comments

Comments
 (0)