Skip to content

Commit bd63205

Browse files
committed
Fix microsoft/TypeScript#26133: Add HTMLObjectElement.reportValidity
1 parent d0a51cd commit bd63205

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7398,6 +7398,7 @@ interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
73987398
* Returns whether a form will validate when it is submitted, without having to submit it.
73997399
*/
74007400
checkValidity(): boolean;
7401+
reportValidity(): boolean;
74017402
/**
74027403
* Sets a custom error message that is displayed when a form is submitted.
74037404
* @param error Sets a custom error message that is displayed when a form is submitted.

inputfiles/addedTypes.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,16 @@
18511851
"override-type": "boolean"
18521852
}
18531853
}
1854+
},
1855+
"methods": {
1856+
"method": {
1857+
"reportValidity": {
1858+
"name": "reportValidity",
1859+
"override-signatures": [
1860+
"reportValidity(): boolean"
1861+
]
1862+
}
1863+
}
18541864
}
18551865
},
18561866
"EventSource": {
@@ -2099,7 +2109,9 @@
20992109
"name": "wbr"
21002110
}
21012111
],
2102-
"implements": ["ElementCSSInlineStyle"]
2112+
"implements": [
2113+
"ElementCSSInlineStyle"
2114+
]
21032115
},
21042116
"HTMLFormElement": {
21052117
"element": [
@@ -2557,4 +2569,4 @@
25572569
}
25582570
]
25592571
}
2560-
}
2572+
}

0 commit comments

Comments
 (0)