-
Notifications
You must be signed in to change notification settings - Fork 195
/
index.d.ts
37 lines (33 loc) · 874 Bytes
/
index.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
37
declare module "react-visibility-sensor" {
import * as React from "react";
interface Shape {
top?: number;
left?: number;
bottom?: number;
right?: number;
}
interface Props {
onChange?: (isVisible: boolean) => void;
active?: boolean;
partialVisibility?: boolean;
offset?: Shape;
minTopValue?: number;
intervalCheck?: boolean;
intervalDelay?: number;
scrollCheck?: boolean;
scrollDelay?: number;
scrollThrottle?: number;
resizeCheck?: boolean;
resizeDelay?: number;
resizeThrottle?: number;
containment?: any;
delayedCall?: boolean;
children?:
| React.ReactNode
| ((
args: { isVisible: boolean; visibilityRect?: Shape }
) => React.ReactNode);
}
const ReactVisibilitySensor: React.StatelessComponent<Props>;
export default ReactVisibilitySensor;
}