Closed remarkablemark closed 1 year ago
TypeScript question
Importing type throws error:
I ended up having to import the type with:
import { TreeProps } from 'react-d3-tree/lib/types/Tree/types'
Importing type should work:
import type { TreeProps } from 'react-d3-tree'
https://replit.com/@remarkablemark/react-d3-tree#src/CenteredTree.tsx
3.5.0
N/A
@remarkablemark try to import like this :arrow_down_small: import { TreeProps } from 'react-d3-tree/lib/Tree/types';
Thanks @Devamchaudhari!
Welcome @remarkablemark :smile:
Are you reporting a bug, or opening a feature request?
TypeScript question
What is the actual behavior/output?
Importing type throws error:
I ended up having to import the type with:
What is the behavior/output you expect?
Importing type should work:
Can you consistently reproduce the issue/create a reproduction case (e.g. on https://codesandbox.io)?
https://replit.com/@remarkablemark/react-d3-tree#src/CenteredTree.tsx
What version of react-d3-tree are you using?
3.5.0
If react-d3-tree crashed with a traceback, please paste the full traceback below.
N/A