DefinitelyTyped/types/react-infinite/index.d.ts
Forbes Lindesay 8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00

36 lines
1.1 KiB
TypeScript

// Type definitions for react-infinite
// Project: https://github.com/seatgeek/react-infinite
// Definitions by: rhysd <https://github.com/rhysd>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
///<reference types="react" />
import * as React from "react";
export = Infinite;
export as namespace Infinite;
declare namespace Infinite {
interface InfiniteProps extends React.Props<Infinite> {
elementHeight: number | number[];
containerHeight?: number;
preloadBatchSize?: number | Object;
preloadAdditionalHeight?: number | Object;
handleScroll?: (node: React.ReactElement<any>) => void;
infiniteLoadBeginBottomOffset?: number;
infiniteLoadBeginEdgeOffset?: number;
onInfiniteLoad?: () => void;
loadingSpinnerDelegate?: React.ReactElement<any>;
isInfiniteLoading?: boolean;
timeScrollStateLastsForAfterUserScrolls?: number;
className?: string;
useWindowAsScrollContainer?: boolean;
displayBottomUpwards?: boolean;
}
}
declare class Infinite extends React.Component<Infinite.InfiniteProps> {
static containerHeightScaleFactor(n: number): any;
}