Skip to content

Commit 08d4952

Browse files
kirinysaschanaz
andauthored
Updated type definition HTMLButtonElement to reflect HTML Standard (#1506)
Co-authored-by: saschanaz <[email protected]>
1 parent 95567ed commit 08d4952

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6313,7 +6313,7 @@ interface HTMLButtonElement extends HTMLElement {
63136313
/** Sets or retrieves the name of the object. */
63146314
name: string;
63156315
/** Gets the classification and default behavior of the button. */
6316-
type: string;
6316+
type: "submit" | "reset" | "button";
63176317
/** 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. */
63186318
readonly validationMessage: string;
63196319
/** Returns a ValidityState object that represents the validity states of an element. */

inputfiles/overridingTypes.jsonc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,9 @@
17051705
"labels": {
17061706
"name": "labels",
17071707
"overrideType": "NodeListOf<HTMLLabelElement>"
1708+
},
1709+
"type": {
1710+
"overrideType": "\"submit\" | \"reset\" | \"button\"
17081711
}
17091712
}
17101713
}

0 commit comments

Comments
 (0)