forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-infinite.d.ts
36 lines (31 loc) · 1.13 KB
/
react-infinite.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// 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
///<reference path='../react/react.d.ts' />
declare module "react-infinite" {
import Infinite = ReactInfinite.Infinite;
export = Infinite;
}
declare namespace ReactInfinite {
import React = __React;
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;
}
export class Infinite extends React.Component<InfiniteProps, {}> {
static containerHeightScaleFactor(n: number): any;
}
}