From 7c2c4a1a3fb7ffd18907cd288667d5c0eb7685b6 Mon Sep 17 00:00:00 2001 From: Robin van Wijngaarden Date: Tue, 15 Oct 2019 01:35:02 +0200 Subject: [PATCH] [react-lazyload] Updated types (#39002) * Updated types for @types/react-lazyload The prop `preventLoading` was introduced [here](https://github.com/twobin/react-lazyload/pull/243) and can be found back in `master` and the README of twobin/react-lazyload: https://github.com/twobin/react-lazyload#preventloading * Synchronize order of props with PropTypes from src * Bump version Exclude patch version --- types/react-lazyload/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/react-lazyload/index.d.ts b/types/react-lazyload/index.d.ts index ffe964ea0b..bce59665c6 100644 --- a/types/react-lazyload/index.d.ts +++ b/types/react-lazyload/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-lazyload ver 2.5 +// Type definitions for react-lazyload ver 2.6 // Project: https://github.com/jasonslyvia/react-lazyload // Definitions by: m0a // svobik7 @@ -18,8 +18,9 @@ export interface LazyLoadProps { throttle?: number | boolean; debounce?: number | boolean; placeholder?: ReactNode; - unmountIfInvisible?: boolean; scrollContainer?: string | Element; + unmountIfInvisible?: boolean; + preventLoading?: boolean; } export default class LazyLoad extends Component {