glint
glint copied to clipboard
SVG g element throws a type error
(might be related to #917 / #1012 / #1010 )
I have a following snippet in my component
<g ...attributes>
<svg /*some_attributes*/>
// more stuff
</svg>
</g>
and when i try to type it as
export interface UserPhotoInSvgSignature {
Args: {
// ...
};
Element: SVGGElement;
}
const UserPhotoInSvgComponent = templateOnly<UserPhotoInSvgSignature>();
i receive the following:
<html>Argument of type 'Element' is not assignable to parameter of type 'SVGGElement'.<br/>Type 'Element' is missing the following properties from type 'SVGGElement': transform, getBBox, getCTM, getScreenCTM, and 107 more. (glint:2345)
This started to happen after upgrading to v1.6. I also noticed that specifying the Element as the type solves the problem but i'd like to have more precise type if possible.