Skip to content

fix: fetchPriority type for HTMLImageElement, HTMLLinkElement, and HTMLScriptElement #1880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11439,7 +11439,7 @@ interface HTMLImageElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */
decoding: "async" | "sync" | "auto";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */
fetchPriority: string;
fetchPriority: "high" | "low" | "auto";
/**
* Sets or retrieves the height of the object.
*
Expand Down Expand Up @@ -11958,7 +11958,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled) */
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */
fetchPriority: string;
fetchPriority: "high" | "low" | "auto";
/**
* Sets or retrieves a destination URL or an anchor point.
*
Expand Down Expand Up @@ -13004,7 +13004,7 @@ interface HTMLScriptElement extends HTMLElement {
*/
event: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */
fetchPriority: string;
fetchPriority: "high" | "low" | "auto";
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
Expand Down
6 changes: 3 additions & 3 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11425,7 +11425,7 @@ interface HTMLImageElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */
decoding: "async" | "sync" | "auto";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */
fetchPriority: string;
fetchPriority: "high" | "low" | "auto";
/**
* Sets or retrieves the height of the object.
*
Expand Down Expand Up @@ -11943,7 +11943,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled) */
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */
fetchPriority: string;
fetchPriority: "high" | "low" | "auto";
/**
* Sets or retrieves a destination URL or an anchor point.
*
Expand Down Expand Up @@ -12985,7 +12985,7 @@ interface HTMLScriptElement extends HTMLElement {
*/
event: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */
fetchPriority: string;
fetchPriority: "high" | "low" | "auto";
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
Expand Down
27 changes: 27 additions & 0 deletions inputfiles/overridingTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3609,6 +3609,33 @@
}
}
}
},
"HTMLImageElement": {
"properties": {
"property": {
"fetchPriority": {
"overrideType": "\"high\" | \"low\" | \"auto\""
}
}
}
},
"HTMLLinkElement": {
"properties": {
"property": {
"fetchPriority": {
"overrideType": "\"high\" | \"low\" | \"auto\""
}
}
}
},
"HTMLScriptElement": {
"properties": {
"property": {
"fetchPriority": {
"overrideType": "\"high\" | \"low\" | \"auto\""
}
}
}
}
}
},
Expand Down
Loading