react-use-infinite-loader icon indicating copy to clipboard operation
react-use-infinite-loader copied to clipboard

Typescript - Missing page in UseInfiniteLoaderOptions loadMore definition ?

Open jy95 opened this issue 2 years ago • 0 comments

Hello @robcalcroft ,

First and foremost, thanks for your project. When implementing one of your examples in Typescript, I got this error :

image

Like VS Code told me, it is due to the definition of loadMore : https://github.com/robcalcroft/react-use-infinite-loader/blob/master/index.d.ts#L5

Do you think you can update it so it is Typescript friendly ?

Kind regards,

Jacques Y.

jy95 avatar Aug 10 '23 19:08 jy95