react-intersection-observer
Advanced tools
Comparing version 2.0.1 to 2.0.2
declare module 'react-intersection-observer' { | ||
import * as React from 'react'; | ||
import React = require('react'); | ||
export type IntersectionObserverProps = { | ||
export interface IntersectionObserverProps { | ||
/** Children should be either a function or a node */ | ||
children: JSX.Element | null | ((inView: boolean) => JSX.Element | null); | ||
children?: React.ReactNode | ((inView: boolean) => React.ReactNode); | ||
@@ -50,6 +50,6 @@ /** | ||
/** Call this function whenever the in view state changes */ | ||
onChange?(inView: boolean): void; | ||
onChange?(inView: boolean|React.FormEvent<HTMLElement>): void; | ||
/** Use `render` method to only render content when inView */ | ||
render?(): JSX.Element | null; | ||
render?(): React.ReactNode; | ||
}; | ||
@@ -56,0 +56,0 @@ |
{ | ||
"name": "react-intersection-observer", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API", | ||
@@ -85,3 +85,3 @@ "main": "lib/index.js", | ||
"jest": "^21.2.1", | ||
"lint-staged": "^4.3.0", | ||
"lint-staged": "^5.0.0", | ||
"prettier": "^1.8.1", | ||
@@ -88,0 +88,0 @@ "react": "^16.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42234