mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Add children
This commit is contained in:
+3
@@ -28,6 +28,9 @@ interface Props {
|
||||
resizeDelay?: number;
|
||||
resizeThrottle?: number;
|
||||
delayedCall?: boolean;
|
||||
children?: (
|
||||
args: { isVisible: boolean; visibilityRect?: Shape }
|
||||
) => React.ReactNode;
|
||||
}
|
||||
|
||||
declare const ReactVisibilitySensor: React.StatelessComponent<Props>;
|
||||
|
||||
@@ -20,6 +20,7 @@ const component = (
|
||||
resizeCheck={bool}
|
||||
resizeDelay={num}
|
||||
resizeThrottle={num}
|
||||
delayedCall={bool}
|
||||
/>
|
||||
delayedCall={bool}>
|
||||
{({ isVisible: bool, visibilityRect: shape }) => <div />}
|
||||
</ReactVisibilitySensor>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user