From a1810b81bbbc8a22440484256a2c18bab0775f99 Mon Sep 17 00:00:00 2001 From: LankyMoose Date: Tue, 5 Nov 2024 16:17:09 +1300 Subject: [PATCH] lib/types.dom - add 'loading' attr for img/iframe --- packages/lib/src/types.dom.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/lib/src/types.dom.ts b/packages/lib/src/types.dom.ts index bd90162..4def93d 100644 --- a/packages/lib/src/types.dom.ts +++ b/packages/lib/src/types.dom.ts @@ -127,6 +127,8 @@ type LinkRel = | "tag" | "up" +type Loading = "eager" | "lazy" + type Target = "_blank" | "_self" | "_parent" | "_top" type EncType = @@ -402,6 +404,7 @@ interface HtmlElementAttributes { sandbox?: IFrameSandbox width?: string | number height?: string | number + loading?: Loading } img: { alt?: string @@ -410,6 +413,7 @@ interface HtmlElementAttributes { useMap?: string width?: string | number height?: string | number + loading?: Loading } input: { accept?: InputAccept