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
I am using @visx/zoom and want to split a component into several subcomponents. However I am struggling with the type annotations in my subcomponents.
The type that I can't find the import path of, or that isn't exported, is ZoomState (the type of the zoom object seems to be ProvidedZoom<SVGSVGElement> & ZoomState)
I also had to check this issue #1693 to figure out that I had to import { ProvidedZoom, TransformMatrix } from '@visx/zoom/lib/types' (instead of '@visx/zoom') (Which I could have seen in my IDE as well...)
Do I have to define ZoomState myself? Or is there a type export systematic that I fail to see?
I am generally struggling with this in Typescript, because I have the feeling that every framework has its own way of handling this..
Thank you in advance!
Flo
The text was updated successfully, but these errors were encountered:
Hi everyone,
I am using @visx/zoom and want to split a component into several subcomponents. However I am struggling with the type annotations in my subcomponents.
The type that I can't find the import path of, or that isn't exported, is
ZoomState
(the type of the zoom object seems to beProvidedZoom<SVGSVGElement> & ZoomState
)I also had to check this issue #1693 to figure out that I had to
import { ProvidedZoom, TransformMatrix } from '@visx/zoom/lib/types'
(instead of'@visx/zoom'
) (Which I could have seen in my IDE as well...)Do I have to define
ZoomState
myself? Or is there a type export systematic that I fail to see?I am generally struggling with this in Typescript, because I have the feeling that every framework has its own way of handling this..
Thank you in advance!
Flo
The text was updated successfully, but these errors were encountered: