react-paginate: renderOnZeroPageCount missing on type
Using typescript here, when i add renderOnZeroPageCount
the prop is not recognized
d:
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (2 by maintainers)
Commits related to this issue
- #394 Try to add TypeScript definitions in repo — committed to AdeleD/react-paginate by MonsieurV 3 years ago
- #394 Move TypeScript definitions to project root — committed to AdeleD/react-paginate by MonsieurV 3 years ago
Nope, Typescript look for an
index.d.ts
in the package root by default. Yes, it works. Just to mention that, with the current type, the syntax isand not
like showed in doc.
👌 I hadn’t rebuilt the demo.js file properly, sorry.
v8.0.2 is released.
This now should be possible
https://github.com/AdeleD/react-paginate/commit/bac1a6ee3d7b65acc31d738a70f8ffdeba76ff22
@equinusocio can you check one last time?
The issue is probably related to https://github.com/DefinitelyTyped/DefinitelyTyped. Because the type definition installed from there doesn’t include that property at all: