From ef5c36f5bd76c35af2b2d297fef87bffda7a9e9b Mon Sep 17 00:00:00 2001 From: Josh <38544454+JoshuaScript@users.noreply.github.com> Date: Mon, 15 Oct 2018 11:44:21 -0500 Subject: [PATCH] [react-infinite-scroll-component] Made endMessage prop optional (#29705) * Made endMessage optional for 'react-infinite-scroll-component' * added name to definitions attribuitons list --- types/react-infinite-scroll-component/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-infinite-scroll-component/index.d.ts b/types/react-infinite-scroll-component/index.d.ts index f43fc50e24..4380c2f11a 100644 --- a/types/react-infinite-scroll-component/index.d.ts +++ b/types/react-infinite-scroll-component/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Stephanie Roy // Bartosz Dotryw // David Kevork +// Joshua R. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -30,7 +31,7 @@ declare namespace InfiniteScroll { /** * This message is shown to the user when he has seen all the records which means he's at the bottom and hasMore is false */ - endMessage: React.ReactNode; + endMessage?: React.ReactNode; /** * You can send a loader component to show while the component waits for the next load of data. e.g.

Loading...

or any fancy loader element