@types/react-window-infinite-loader
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Installation

npm install --save @types/react-window-infinite-loader

Summary

This package contains type definitions for react-window-infinite-loader (https://github.com/bvaughn/react-window-infinite-loader/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-window-infinite-loader.

index.d.ts

import { Component, FC, ReactNode, Ref } from "react";
import { FixedSizeList, ListOnItemsRenderedProps, VariableSizeList } from "react-window";

type OnItemsRendered = (props: ListOnItemsRenderedProps) => any;

interface InfiniteLoaderProps {
    isItemLoaded: (index: number) => boolean;
    loadMoreItems: (startIndex: number, stopIndex: number) => Promise<void> | void;
    itemCount: number;
    children: (props: { onItemsRendered: OnItemsRendered; ref: (ref: any) => void }) => ReactNode;
    threshold?: number | undefined;
    minimumBatchSize?: number | undefined;
}

declare class InfiniteLoader extends Component<InfiniteLoaderProps> {
    resetloadMoreItemsCache(autoReload?: boolean): void;
}

export = InfiniteLoader;

Additional Details

Credits

These definitions were written by Nivesh Ravindran, and fnknzzz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-window-infinite-loader

Weekly Downloads

179,373

Version

1.0.9

License

MIT

Unpacked Size

4.55 kB

Total Files

5

Last publish

Collaborators

  • types