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 1
1
import 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 & {
5
20
useCustomTheme ?: boolean | undefined ;
6
- } , any > ;
21
+ } ,
22
+ any
23
+ > &
24
+ typeof ListItem ;
7
25
export default _default ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import {ListItemProps} from './types';
9
9
10
10
type ListItemState = {
11
11
pressed : boolean ;
12
- }
12
+ } ;
13
13
14
14
class ListItem extends Component < ListItemProps , ListItemState > {
15
15
static displayName = 'ListItem' ;
@@ -20,7 +20,7 @@ class ListItem extends Component<ListItemProps, ListItemState> {
20
20
underlayColor : Colors . dark70
21
21
} ;
22
22
23
- static Part = ListItemPart ;
23
+ static Part : typeof ListItemPart ;
24
24
25
25
styles = createStyles ( this . props . height ) ;
26
26
@@ -84,4 +84,6 @@ function createStyles(height: ListItemProps['height']) {
84
84
85
85
export { ListItemProps } ;
86
86
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