mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-11 20:50:02 +00:00
Merge pull request #33181 from ldanet/fix/react-layload/children
react-lazyload: Improve typing of children
This commit is contained in:
6
types/react-lazyload/index.d.ts
vendored
6
types/react-lazyload/index.d.ts
vendored
@@ -4,7 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
import { Component } from "react";
|
||||
import { Component, ReactNode } from "react";
|
||||
|
||||
export interface LazyLoadProps {
|
||||
once?: boolean;
|
||||
@@ -13,10 +13,10 @@ export interface LazyLoadProps {
|
||||
overflow?: boolean;
|
||||
resize?: boolean;
|
||||
scroll?: boolean;
|
||||
children?: JSX.Element;
|
||||
children?: ReactNode;
|
||||
throttle?: number | boolean;
|
||||
debounce?: number | boolean;
|
||||
placeholder?: any;
|
||||
placeholder?: ReactNode;
|
||||
unmountIfInvisible?: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user