#Updated 1.7.3 to 1.7.4 and now <img /> typings in jsx.d.ts force elementtiming and fetchpriority

5 messages · Page 1 of 1 (latest)

ancient spoke
#

Creating a regular <img /> throws the error:

ts(2739) (property) JSX.HTMLElementTags.img: JSX.ImgHTMLAttributes<HTMLImageElement>```

```js
  interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
    alt?: string;
    crossorigin?: HTMLCrossorigin;
    decoding?: "sync" | "async" | "auto";
    height?: number | string;
    ismap?: boolean;
    isMap?: boolean;
    loading?: "eager" | "lazy";
    referrerpolicy?: HTMLReferrerPolicy;
    referrerPolicy?: HTMLReferrerPolicy;
    sizes?: string;
    src?: string;
    srcset?: string;
    srcSet?: string;
    usemap?: string;
    useMap?: string;
    width?: number | string;
    crossOrigin?: HTMLCrossorigin;
    elementtiming: string;
    fetchpriority: "high" | "low" | "auto";
  }```

Should those not be optional?
gray wagon
ancient spoke
#

Ah nice, just assumed I was doing something wrong as this would cause issues with every single typescript project using solid