You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consta=<divtype="button"/>// TS handles it 👍 // Error:(9, 12) TS2322: Type '{ type: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.// Property 'type' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
Stardust element
<Imagetype="button"/>// Works in this case, when `as` prop is not specified 👍 // Error:(9, 12) TS2322: Type '{ type: string; }' is not assignable to type 'IntrinsicAttributes & Extended<ImageProps, DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>'.// Property 'type' does not exist on type 'IntrinsicAttributes & Extended<ImageProps, DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>'.
Stardust element and broken cases
<Imageas='div'type="button"/>// still not assignable, but passes type checks 💣
<Headerdescription={{as: 'div',type: 'button'}}/>// still not assignable, but passes type checks 💣
Bug Report
Type checks on
asprop works only in basic case.Primitive element
Stardust element
Stardust element and broken cases
Version
latest