File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import type {Props as VirtualizedSectionListProps} from 'VirtualizedSectionList'
2323
2424type Item = any ;
2525
26- type SectionBase < SectionItemT > = {
26+ export type SectionBase < SectionItemT > = {
2727 /**
2828 * The data for rendering items in this section.
2929 */
@@ -187,10 +187,11 @@ type OptionalProps<SectionT: SectionBase<any>> = {
187187 legacyImplementation ?: ?boolean ,
188188} ;
189189
190- export type Props < SectionT > = RequiredProps < SectionT > &
191- OptionalProps < SectionT > &
192- VirtualizedSectionListProps < SectionT > ;
193-
190+ export type Props < SectionT > = {
191+ ...$Exact < RequiredProps < SectionT >> ,
192+ ...$Exact < OptionalProps < SectionT >> ,
193+ ...$Exact < VirtualizedSectionListProps < SectionT >> ,
194+ } ;
194195const defaultProps = {
195196 ...VirtualizedSectionList . defaultProps ,
196197 stickySectionHeadersEnabled : Platform . OS === 'ios' ,
You can’t perform that action at this time.
0 commit comments