Fixed flowtype of ListViewDataSource to accept optional params

Summary:
ParamType of ListViewDataSource currently requires all the parameters to be supplied, although they are nullable.
This diff fixed it and allows the parameters to be not supplied.

Reviewed By: javache

Differential Revision: D3462796

fbshipit-source-id: 68dee260ff0c4020b7fd2bb7031d14c980812694
This commit is contained in:
Nathan Azaria 2016-06-22 12:33:56 -07:00 committed by Facebook Github Bot
parent 6a828328e1
commit f03bc9016e

View File

@ -51,9 +51,9 @@ type differType = (data1: any, data2: any) => bool;
type ParamType = {
rowHasChanged: differType;
getRowData: ?typeof defaultGetRowData;
sectionHeaderHasChanged: ?differType;
getSectionHeaderData: ?typeof defaultGetSectionHeaderData;
getRowData?: ?typeof defaultGetRowData;
sectionHeaderHasChanged?: ?differType;
getSectionHeaderData?: ?typeof defaultGetSectionHeaderData;
}
/**