We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I copied the code into my project instead, and VSCode is suggesting the following type:
React.ForwardRefExoticComponent<{ flickOnSwipe?: boolean | undefined; children?: any; onSwipe?: any; onCardLeftScreen?: ((dir: string) => void) | undefined; className?: any; preventSwipe?: any; swipeRequirementType?: any; swipeThreshold?: any; onSwipeRequirementFulfilled?: any; onSwipeRequirementUnfulfilled?: any; } & React.RefAttributes<...>>
That type could be tighter, but React.FC doesn't accept the ref prop. See also https://stackoverflow.com/questions/60554808/react-useref-with-typescript-and-functional-component.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I copied the code into my project instead, and VSCode is suggesting the following type:
That type could be tighter, but React.FC doesn't accept the ref prop. See also https://stackoverflow.com/questions/60554808/react-useref-with-typescript-and-functional-component.
The text was updated successfully, but these errors were encountered: