Explorar o código

fix(types/jsx): add missing loading attr for img element (#6160)

Innei %!s(int64=2) %!d(string=hai) anos
pai
achega
68d6b43f7e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/runtime-dom/src/jsx.ts

+ 1 - 0
packages/runtime-dom/src/jsx.ts

@@ -457,6 +457,7 @@ export interface ImgHTMLAttributes extends HTMLAttributes {
   srcset?: string
   usemap?: string
   width?: Numberish
+  loading?: 'lazy' | 'eager'
 }
 
 export interface InsHTMLAttributes extends HTMLAttributes {