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
Can you please include a typescript definition file?
The text was updated successfully, but these errors were encountered:
I whipped this together for anyone looking for a quick hack:
declare module 'react-sortable' { export function sortable<ItemType, BaseProps = {}>( component: React.FC<BaseProps> ) : React.FC<BaseProps & SortableProps<ItemType>>; } interface SortableProps<ItemType> { onSortItems: ( items: ItemType[] ) => void; items: ItemType[]; sortId: number; key: number | string; }
This goes into a file such as react-sortable.d.ts and should work from there.
react-sortable.d.ts
Sorry, something went wrong.
No branches or pull requests
Can you please include a typescript definition file?
The text was updated successfully, but these errors were encountered: