Installation
npm install --save @types/react-infinite-scroller
Summary
This package contains type definitions for react-infinite-scroller (https://github.com/CassetteRocks/react-infinite-scroller).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-infinite-scroller.
import * as React from "react";
declare namespace InfiniteScroll {
interface InfiniteScrollProps extends React.HTMLProps<InfiniteScroll> {
element?: React.ReactNode | string | undefined;
hasMore?: boolean | undefined;
initialLoad?: boolean | undefined;
isReverse?: boolean | undefined;
loadMore(page: number): void;
pageStart?: number | undefined;
threshold?: number | undefined;
useCapture?: boolean | undefined;
useWindow?: boolean | undefined;
loader?: React.ReactElement | undefined;
getScrollParent?(): HTMLElement | null;
}
class InfiniteScroll extends React.Component<InfiniteScrollProps> {
getParentElement(elem?: HTMLElement | null): HTMLElement | undefined | null;
}
namespace InfiniteScroll {}
}
export = InfiniteScroll.InfiniteScroll;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Lauri Lavanti, Piotr Srebniak, Brett Miller, and Yipeng Zhao.