mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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:
parent
0020fcee62
commit
9cb211daaa
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user