[react-infinite-scroll-component] Made endMessage prop optional (#29705)

* Made endMessage optional for 'react-infinite-scroll-component'

* added name to definitions attribuitons list
This commit is contained in:
Josh 2018-10-15 11:44:21 -05:00 committed by Sheetal Nandi
parent 3ad372f36c
commit ef5c36f5bd

View File

@ -3,6 +3,7 @@
// Definitions by: Stephanie Roy <https://github.com/sroy3>
// Bartosz Dotryw <https://github.com/burtek>
// David Kevork <https://github.com/davidkevork>
// Joshua R. <https://github.com/JoshuaScript>
// 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. <h3>Loading...</h3> or any fancy loader element