Skip to content

Commit aa2ee99

Browse files
committed
fix lint
1 parent 8e22847 commit aa2ee99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-compose/src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export interface ShorthandConfig<TProps> {
1414
export type PropsOfElement<
1515
// tslint:disable-next-line:no-any
1616
E extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any> | ComponentWithAs
17+
// tslint:disable-next-line:no-any
1718
> = E extends { __PRIVATE_PROPS: any }
1819
? E['__PRIVATE_PROPS']
1920
: JSX.LibraryManagedAttributes<E, React.ComponentPropsWithRef<E>>;
@@ -28,6 +29,7 @@ export type ComponentWithAs<TElementType extends keyof JSX.IntrinsicElements = '
2829
// tslint:disable-next-line:no-any
2930
as: React.Requireable<string | ((props: any, context?: any) => any) | (new (props: any, context?: any) => any)>;
3031
};
32+
// tslint:disable-next-line:no-any
3133
contextTypes?: React.ValidationMap<any>;
3234
defaultProps?: Partial<TProps & { as: TElementType }>;
3335
displayName?: string;

0 commit comments

Comments
 (0)