-
Notifications
You must be signed in to change notification settings - Fork 77
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
How to use it in typescript
?
#33
Comments
Would you support typescript if it's possible? @bevacqua |
Simply create an declare module 'react-dragula' {
export default function(
containers: Array<HTMLElement>,
options: import('dragula').DragulaOptions
): import('dragula').Drake;
} and run |
It'd be great if this was just included in the package! |
@JoshMcCullough your comment gave me the idea to add the type definition to the DefinitelyTyped repository. My PR just got merged: DefinitelyTyped/DefinitelyTyped#46828 (comment) So now you can just run |
@AdrianMrn Great, thanks! |
I get an error
Could not find a declaration file for module 'react-dragula'
when usingreact-dragula
intypescript
. Where can I find the type definition for this component?The text was updated successfully, but these errors were encountered: