Skip to content

Typescript - Missing page in UseInfiniteLoaderOptions loadMore definition ? #17

Description

@jy95

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions