Skip to content

Commit b24e2d7

Browse files
k-ylesaschanaz
andauthored
make location.reload() return never (#1544)
Co-authored-by: saschanaz <[email protected]>
1 parent 1bcd55f commit b24e2d7

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14475,7 +14475,7 @@ interface Location {
1447514475
*
1447614476
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload)
1447714477
*/
14478-
reload(): void;
14478+
reload(): never;
1447914479
/**
1448014480
* Removes the current page from the session history and navigates to the given URL.
1448114481
*

inputfiles/overridingTypes.jsonc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,17 @@
584584
}
585585
}
586586
},
587+
"Location": {
588+
"methods": {
589+
"method": {
590+
"reload": {
591+
"overrideSignatures": [
592+
"reload(): never"
593+
]
594+
}
595+
}
596+
}
597+
},
587598
"Window": {
588599
"properties": {
589600
"property": {

0 commit comments

Comments
 (0)