Skip to content
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

Is this TypeScript ready? #31

Open
junerockwell opened this issue Feb 7, 2023 · 1 comment
Open

Is this TypeScript ready? #31

junerockwell opened this issue Feb 7, 2023 · 1 comment

Comments

@junerockwell
Copy link

Is this project TypeScript ready? There are incompatibilities.

How to reproduce:

  1. Install this package in an already working React TypeScript project.
  2. npm i @unicef/react-org-chart
  3. import OrgChart from '@unicef/react-org-chart'

The error:

Could not find a declaration file for module '@unicef/react-org-chart'. '/Users/<myaccount>/Documents/<project>/GitHub/<project_name>/node_modules/@unicef/react-org-chart/dist/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/unicef__react-org-chart` if it exists or add a new declaration (.d.ts) file containing `declare module '@unicef/react-org-chart';`ts(7016)

Screen Shot 2023-02-07 at 1 58 45 PM

What is the package to install to get this library compatible with TypeScript?

@merlos
Copy link
Member

merlos commented Feb 18, 2023

Hi!
No, it's not TypeScript compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants