File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/react-compose/src Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export interface ShorthandConfig<TProps> {
14
14
export type PropsOfElement <
15
15
// tslint:disable-next-line:no-any
16
16
E extends keyof JSX . IntrinsicElements | React . JSXElementConstructor < any > | ComponentWithAs
17
+ // tslint:disable-next-line:no-any
17
18
> = E extends { __PRIVATE_PROPS : any }
18
19
? E [ '__PRIVATE_PROPS' ]
19
20
: JSX . LibraryManagedAttributes < E , React . ComponentPropsWithRef < E > > ;
@@ -28,6 +29,7 @@ export type ComponentWithAs<TElementType extends keyof JSX.IntrinsicElements = '
28
29
// tslint:disable-next-line:no-any
29
30
as : React . Requireable < string | ( ( props : any , context ?: any ) => any ) | ( new ( props : any , context ?: any ) => any ) > ;
30
31
} ;
32
+ // tslint:disable-next-line:no-any
31
33
contextTypes ?: React . ValidationMap < any > ;
32
34
defaultProps ?: Partial < TProps & { as : TElementType } > ;
33
35
displayName ?: string ;
You can’t perform that action at this time.
0 commit comments