So I was working on some unrelated type refactoring and once I fixed some typing issue, another one arrised. And since it is a little bit non-standard code from around 2 years ago, I wonder how to go about it.
So basically we have a carousel like this (I simplified it a bit and omitted unrelated props)
Apparently it is working fine. At least at runtime. But typescript has a problem with it saying:
Property 'getBoundingClientRect' does not exist on type 'Element | Vue | Vue[] | Element[]'. Property 'getBoundingClientRect' does not exist on type 'Vue'.Vetur(2339)
Property 'getBoundingClientRect' does not exist on type 'Element | Vue | Vue[] | Element[]'. Property 'getBoundingClientRect' does not exist on type 'Vue'.Vetur(2339)
Property 'style' does not exist on type 'Element | Vue | Vue[] | Element[]'. Property 'style' does not exist on type 'Element'.Vetur(2339)
Property 'style' does not exist on type 'Element | Vue | Vue[] | Element[]'. Property 'style' does not exist on type 'Element'.Vetur(2339)
Sooo... now I'm not sure how to proceed. Do you have an idea?