Skip to content

Commit 369d9c7

Browse files
idango10saschanaz
andauthored
fix: fetchPriority type for HTMLImageElement, HTMLLinkElement, and HTMLScriptElement (microsoft#1880)
Co-authored-by: saschanaz <[email protected]>
1 parent e903c46 commit 369d9c7

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

baselines/dom.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11439,7 +11439,7 @@ interface HTMLImageElement extends HTMLElement {
1143911439
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */
1144011440
decoding: "async" | "sync" | "auto";
1144111441
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */
11442-
fetchPriority: string;
11442+
fetchPriority: "high" | "low" | "auto";
1144311443
/**
1144411444
* Sets or retrieves the height of the object.
1144511445
*
@@ -11958,7 +11958,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
1195811958
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled) */
1195911959
disabled: boolean;
1196011960
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */
11961-
fetchPriority: string;
11961+
fetchPriority: "high" | "low" | "auto";
1196211962
/**
1196311963
* Sets or retrieves a destination URL or an anchor point.
1196411964
*
@@ -13004,7 +13004,7 @@ interface HTMLScriptElement extends HTMLElement {
1300413004
*/
1300513005
event: string;
1300613006
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */
13007-
fetchPriority: string;
13007+
fetchPriority: "high" | "low" | "auto";
1300813008
/**
1300913009
* Sets or retrieves the object that is bound to the event script.
1301013010
* @deprecated

baselines/ts5.5/dom.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11425,7 +11425,7 @@ interface HTMLImageElement extends HTMLElement {
1142511425
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */
1142611426
decoding: "async" | "sync" | "auto";
1142711427
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */
11428-
fetchPriority: string;
11428+
fetchPriority: "high" | "low" | "auto";
1142911429
/**
1143011430
* Sets or retrieves the height of the object.
1143111431
*
@@ -11943,7 +11943,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
1194311943
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled) */
1194411944
disabled: boolean;
1194511945
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */
11946-
fetchPriority: string;
11946+
fetchPriority: "high" | "low" | "auto";
1194711947
/**
1194811948
* Sets or retrieves a destination URL or an anchor point.
1194911949
*
@@ -12985,7 +12985,7 @@ interface HTMLScriptElement extends HTMLElement {
1298512985
*/
1298612986
event: string;
1298712987
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */
12988-
fetchPriority: string;
12988+
fetchPriority: "high" | "low" | "auto";
1298912989
/**
1299012990
* Sets or retrieves the object that is bound to the event script.
1299112991
* @deprecated

inputfiles/overridingTypes.jsonc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3616,6 +3616,33 @@
36163616
}
36173617
}
36183618
}
3619+
},
3620+
"HTMLImageElement": {
3621+
"properties": {
3622+
"property": {
3623+
"fetchPriority": {
3624+
"overrideType": "\"high\" | \"low\" | \"auto\""
3625+
}
3626+
}
3627+
}
3628+
},
3629+
"HTMLLinkElement": {
3630+
"properties": {
3631+
"property": {
3632+
"fetchPriority": {
3633+
"overrideType": "\"high\" | \"low\" | \"auto\""
3634+
}
3635+
}
3636+
}
3637+
},
3638+
"HTMLScriptElement": {
3639+
"properties": {
3640+
"property": {
3641+
"fetchPriority": {
3642+
"overrideType": "\"high\" | \"low\" | \"auto\""
3643+
}
3644+
}
3645+
}
36193646
}
36203647
}
36213648
},

0 commit comments

Comments
 (0)