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

Missing TypeScript Typing #4

Open
loganknecht opened this issue Dec 31, 2019 · 0 comments
Open

Missing TypeScript Typing #4

loganknecht opened this issue Dec 31, 2019 · 0 comments

Comments

@loganknecht
Copy link

Hello!

I am very impressed with the work you've done with this project and its themes!

For typescript users, I am reporting that there are no type definitions.

The workaround is to create a react-sortable-tree-theme-minimal.d.ts file in the appropriate location. Mine was placed as a sibling file to my react app's App.tsx and index.tsx file.

Then just add this as the contents of the file:

declare module "react-sortable-tree-theme-minimal";

I may try to create the type definitions for this in the future as I'm interested in understanding that process.

Regardless, great work and keep it up!

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

1 participant