react-force-graph icon indicating copy to clipboard operation
react-force-graph copied to clipboard

How to use ref type correct

Open happylolonly opened this issue 2 years ago • 2 comments

How correctly add type to ref? Tried different options.

image image

But it is not possible to import this type...

happylolonly avatar Oct 20 '23 15:10 happylolonly

Someone know? All code is red;)

happylolonly avatar Oct 23 '23 14:10 happylolonly

You can do that: fg: | ForceGraphMethods<NodeObject<GraphNode>, LinkObject<GraphNode, GraphLink>> | undefined

Where `GraphNode` and `GraphLink` are my types for my data.

pebubblemaps avatar Feb 08 '24 17:02 pebubblemaps