Open hpello opened 1 year ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 464d3ad19688cc6e5997246599b0ea9f889063c9:
Sandbox | Source |
---|---|
react-sortable-hoc-starter | Configuration |
Hello @clauderic! Could you take a look at this PR? π
We need it to keep using react-sortable-hoc
in our TS codebase.
I also just stumbled across this problem.
(Explicitly passing the prop type to SortableElement<P>
and SortableContainer<P>
helps as a workaround)
Having this update would still be nice though!
Hi @clauderic, any chance you can have a look at this PR? π
skipLibCheck: false
, it will allow using this libraryskipLibCheck: true
, it will catch misuses of the library! Else component props are typed as any
π π
Description
The current types trigger an error:
Indeed,
React.StatelessComponent
has been removed from the react types (see https://stackoverflow.com/questions/44375759/how-should-i-declare-a-stateless-functional-component-with-typescript-in-react)This PR fixes this error.