File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed
generatedTypes/src/components/listItem Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { ListItemProps } from './types' ;
3- export { ListItemProps } ;
4- declare const _default : React . ComponentClass < ListItemProps & {
2+ import ListItemPart from 'src/components/listItem/ListItemPart' ;
3+ import { ListItemProps } from './types' ;
4+ export { ListItemProps } ;
5+
6+ declare class ListItem extends Component < ListItemProps , State > {
7+ static displayName : string ;
8+ static Part : typeof ListItemPart ;
9+ constructor ( props : ListItemProps ) ;
10+ onHideUnderlay ( ) : void ;
11+ onShowUnderlay ( ) : void ;
12+ setPressed ( isPressed : boolean ) : void ;
13+ renderViewContainer : ( ) => JSX . Element ;
14+ renderCustomContainer ( Container : React . ComponentType ) : JSX . Element ;
15+ renderChildren ( ) : React . DetailedReactHTMLElement < any , HTMLElement > [ ] | null | undefined ;
16+ render ( ) : JSX . Element ;
17+ }
18+ declare const _default : React . ComponentClass <
19+ ListItemProps & {
520 useCustomTheme ?: boolean | undefined ;
6- } , any > ;
21+ } ,
22+ any
23+ > &
24+ typeof ListItem ;
725export default _default ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import {ListItemProps} from './types';
99
1010type ListItemState = {
1111 pressed : boolean ;
12- }
12+ } ;
1313
1414class ListItem extends Component < ListItemProps , ListItemState > {
1515 static displayName = 'ListItem' ;
@@ -20,7 +20,7 @@ class ListItem extends Component<ListItemProps, ListItemState> {
2020 underlayColor : Colors . dark70
2121 } ;
2222
23- static Part = ListItemPart ;
23+ static Part : typeof ListItemPart ;
2424
2525 styles = createStyles ( this . props . height ) ;
2626
@@ -84,4 +84,6 @@ function createStyles(height: ListItemProps['height']) {
8484
8585export { ListItemProps } ;
8686
87- export default asBaseComponent < ListItemProps > ( ListItem ) ;
87+ ListItem . Part = ListItemPart ;
88+
89+ export default asBaseComponent < ListItemProps , typeof ListItem > ( ListItem ) ;
You can’t perform that action at this time.
0 commit comments