Skip to content

Commit a80db5c

Browse files
authored
Merge pull request #644 from azizhk/valueAsDate
Fix valueAsDate to be Date | null
2 parents cd7ab5b + 63b5216 commit a80db5c

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

baselines/dom.generated.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6985,7 +6985,10 @@ interface HTMLInputElement extends HTMLElement {
69856985
* Returns the value of the data at the cursor's current position.
69866986
*/
69876987
value: string;
6988-
valueAsDate: any;
6988+
/**
6989+
* Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
6990+
*/
6991+
valueAsDate: Date | null;
69896992
/**
69906993
* Returns the input field value as a number.
69916994
*/

inputfiles/comments.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,9 @@
10961096
"value": {
10971097
"comment": "/**\r\n * Returns the value of the data at the cursor's current position.\r\n */"
10981098
},
1099+
"valueAsDate": {
1100+
"comment": "/**\r\n * Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an \"InvalidStateError\" DOMException if the control isn't date- or time-based.\r\n */"
1101+
},
10991102
"src": {
11001103
"comment": "/**\r\n * The address or URL of the a media resource that is to be considered.\r\n */"
11011104
},

inputfiles/overridingTypes.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,10 @@
14591459
"name": "form",
14601460
"read-only": 1,
14611461
"override-type": "HTMLFormElement | null"
1462+
},
1463+
"valueAsDate": {
1464+
"name": "valueAsDate",
1465+
"override-type": "Date | null"
14621466
}
14631467
}
14641468
},

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)