New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript error when using on SVG element #100
Comments
Hmm, interesting. Yeah I suppose SVGElement and HTMLElement would both be valid. Worth fixing this I think 👍 |
Line 120 might be a problem: const { offsetWidth, offsetHeight } = root
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Auto-animate seems to work great on an SVG element, but typescript freaks out.
Would it be possible to add SVG elements to the type definition?
My use-case looks like this (inside a
.svelte
component):The text was updated successfully, but these errors were encountered: