Skip to content

Commit

Permalink
lib/types.dom - add 'loading' attr for img/iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
LankyMoose committed Nov 5, 2024
1 parent 21dbb84 commit a1810b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/lib/src/types.dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ type LinkRel =
| "tag"
| "up"

type Loading = "eager" | "lazy"

type Target = "_blank" | "_self" | "_parent" | "_top"

type EncType =
Expand Down Expand Up @@ -402,6 +404,7 @@ interface HtmlElementAttributes {
sandbox?: IFrameSandbox
width?: string | number
height?: string | number
loading?: Loading
}
img: {
alt?: string
Expand All @@ -410,6 +413,7 @@ interface HtmlElementAttributes {
useMap?: string
width?: string | number
height?: string | number
loading?: Loading
}
input: {
accept?: InputAccept
Expand Down

0 comments on commit a1810b8

Please sign in to comment.