mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-05 05:04:26 +00:00
Add forceCheck for react-lazyload
forceCheck is available to manually trigger checking for elements in viewport. Helpful when LazyLoad components enter the viewport without resize or scroll events, e.g. when the components' container was hidden then become visible.
This commit is contained in:
2
types/react-lazyload/index.d.ts
vendored
2
types/react-lazyload/index.d.ts
vendored
@@ -24,3 +24,5 @@ export default class LazyLoad extends Component<LazyLoadProps> {
|
||||
}
|
||||
|
||||
export function lazyload(option: {}): LazyLoad;
|
||||
|
||||
export function forceCheck(): void;
|
||||
|
||||
Reference in New Issue
Block a user