Skip to content

Is this TypeScript ready? #31

@junerockwell

Description

@junerockwell

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions