File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ declare module "react-visibility-sensor" {
2+ import * as React from "react" ;
3+
4+ interface Shape {
5+ top ?: number ;
6+ left ?: number ;
7+ bottom ?: number ;
8+ right ?: number ;
9+ }
10+
11+ interface Props {
12+ onChange ?: ( isVisible : boolean ) => void ;
13+ active ?: boolean ;
14+ partialVisibility ?: boolean ;
15+ offset ?: Shape ;
16+ minTopValue ?: number ;
17+ intervalCheck ?: boolean ;
18+ intervalDelay ?: number ;
19+ scrollCheck ?: boolean ;
20+ scrollDelay ?: number ;
21+ scrollThrottle ?: number ;
22+ resizeCheck ?: boolean ;
23+ resizeDelay ?: number ;
24+ resizeThrottle ?: number ;
25+ containment ?: any ;
26+ delayedCall ?: boolean ;
27+ children ?: (
28+ args : { isVisible : boolean ; visibilityRect ?: Shape }
29+ ) => React . ReactNode ;
30+ }
31+
32+ const ReactVisibilitySensor : React . StatelessComponent < Props > ;
33+
34+ export default ReactVisibilitySensor ;
35+ }
You can’t perform that action at this time.
0 commit comments