File tree 1 file changed +6
-5
lines changed 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'
23
23
24
24
type Item = any ;
25
25
26
- type SectionBase < SectionItemT > = {
26
+ export type SectionBase < SectionItemT > = {
27
27
/**
28
28
* The data for rendering items in this section.
29
29
*/
@@ -187,10 +187,11 @@ type OptionalProps<SectionT: SectionBase<any>> = {
187
187
legacyImplementation ?: ?boolean ,
188
188
} ;
189
189
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
+ } ;
194
195
const defaultProps = {
195
196
...VirtualizedSectionList . defaultProps ,
196
197
stickySectionHeadersEnabled : Platform . OS === 'ios' ,
You can’t perform that action at this time.
0 commit comments