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