DefinitelyTyped/types/react-lazyload/index.d.ts
Ferdy Budhidharma 6d2fc7181a feat(react-dependents): update to TS 2.8 (part 1 of 2) (#27743)
* feat(react-dependents): update to TS 2.8

* exclude react-dom

* fix version mismatches
2018-08-03 21:01:14 +01:00

30 lines
808 B
TypeScript

// Type definitions for react-lazyload ver 2.3
// Project: https://github.com/jasonslyvia/react-lazyload
// Definitions by: m0a <https://github.com/m0a>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { Component } from "react";
export interface LazyLoadProps {
once?: boolean;
height?: number | string;
offset?: number | number[];
overflow?: boolean;
resize?: boolean;
scroll?: boolean;
children?: JSX.Element;
throttle?: number | boolean;
debounce?: number | boolean;
placeholder?: any;
unmountIfInvisible?: boolean;
}
export default class LazyLoad extends Component<LazyLoadProps> {
constructor(props: LazyLoad);
}
export function lazyload(option: {}): LazyLoad;
export function forceCheck(): void;