mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[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:
parent
3ad372f36c
commit
ef5c36f5bd
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user