Skip to content

Commit c15e021

Browse files
ascorbicdummdidumm
andauthored
fix: add fetchpriority to image attrs (#10390)
Fixes #8099 --------- Co-authored-by: Simon H <[email protected]>
1 parent 1831595 commit c15e021

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/made-this-up.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: add `fetchpriority` attribute type

packages/svelte/elements.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ export interface HTMLImgAttributes extends HTMLAttributes<HTMLImageElement> {
762762
alt?: string | undefined | null;
763763
crossorigin?: 'anonymous' | 'use-credentials' | '' | undefined | null;
764764
decoding?: 'async' | 'auto' | 'sync' | undefined | null;
765+
fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
765766
height?: number | string | undefined | null;
766767
ismap?: boolean | undefined | null;
767768
loading?: 'eager' | 'lazy' | undefined | null;

0 commit comments

Comments
 (0)